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.
28 lines
747 B
HCL
28 lines
747 B
HCL
resource "azurerm_resource_group" "lb" {
|
|
name = "${var.name}-${var.environment}-lb"
|
|
location = var.region
|
|
}
|
|
|
|
resource "azurerm_public_ip" "lb" {
|
|
name = "${var.name}-${var.environment}-ip"
|
|
location = var.region
|
|
resource_group_name = azurerm_resource_group.lb.name
|
|
allocation_method = "Static"
|
|
}
|
|
|
|
resource "azurerm_lb" "lb" {
|
|
name = "${var.name}-${var.environment}-lb"
|
|
location = var.region
|
|
resource_group_name = azurerm_resource_group.lb.name
|
|
|
|
frontend_ip_configuration {
|
|
name = "${var.name}-${var.environment}-ip"
|
|
public_ip_address_id = azurerm_public_ip.lb.id
|
|
}
|
|
|
|
tags = {
|
|
owner = var.owner
|
|
environment = var.environment
|
|
}
|
|
}
|