Implemented changes per review

This commit is contained in:
Tom Archer
2021-09-29 06:47:25 -07:00
parent 2c79eb6a23
commit a8ba805c8b
3 changed files with 8 additions and 5 deletions

View File

@ -14,9 +14,11 @@ provider "azurerm" {
features {}
}
resource "random_uuid" "uuid" {}
resource "random_pet" "rg-name" {
prefix = var.resource_group_name_prefix
}
resource "azurerm_resource_group" "rg" {
name = "${var.resource_group_name_prefix}-${random_uuid.uuid.result}"
name = random_pet.rg-name.id
location = var.resource_group_location
}