This adds the start of the identity module but also cleans up a bunch of things like the LBs. Originally I was managing the LBs, but k8s manages this for us so I disabled the LBs for now.
11 lines
377 B
HCL
11 lines
377 B
HCL
resource "azurerm_resource_group" "identity" {
|
|
name = "${var.name}-${var.environment}-${var.identity}"
|
|
location = var.region
|
|
}
|
|
|
|
resource "azurerm_user_assigned_identity" "identity" {
|
|
resource_group_name = azurerm_resource_group.identity.name
|
|
location = azurerm_resource_group.identity.location
|
|
|
|
name = "${var.name}-${var.environment}-${var.identity}"
|
|
} |