169163334 - Adds more configuration elements per call with Dan
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.
This commit is contained in:
11
terraform/modules/managed_identity/main.tf
Normal file
11
terraform/modules/managed_identity/main.tf
Normal file
@@ -0,0 +1,11 @@
|
||||
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}"
|
||||
}
|
0
terraform/modules/managed_identity/outputs.tf
Normal file
0
terraform/modules/managed_identity/outputs.tf
Normal file
24
terraform/modules/managed_identity/variables.tf
Normal file
24
terraform/modules/managed_identity/variables.tf
Normal file
@@ -0,0 +1,24 @@
|
||||
variable "region" {
|
||||
type = string
|
||||
description = "Region this module and resources will be created in"
|
||||
}
|
||||
|
||||
variable "name" {
|
||||
type = string
|
||||
description = "Unique name for the services in this module"
|
||||
}
|
||||
|
||||
variable "environment" {
|
||||
type = string
|
||||
description = "Environment these resources reside (prod, dev, staging, etc)"
|
||||
}
|
||||
|
||||
variable "owner" {
|
||||
type = string
|
||||
description = "Owner of the environment and resources created in this module"
|
||||
}
|
||||
|
||||
variable "identity" {
|
||||
type = string
|
||||
description = "Name of the managed identity to create"
|
||||
}
|
Reference in New Issue
Block a user