2023-02-24 15:23:15 +08:00

12 lines
325 B
HCL

# Reference to the current subscription. Used when creating role assignments
data "azurerm_subscription" "current" {}
resource "azurerm_resource_group" "default" {
name = "${random_pet.prefix.id}-${var.environment}-rg"
location = var.location
}
resource "random_pet" "prefix" {
prefix = var.prefix
length = 2
}