Skip to content

Commit

Permalink
Add keycloak DNS records
Browse files Browse the repository at this point in the history
  • Loading branch information
chipmonkster committed Oct 9, 2024
1 parent 2ff5bf4 commit 8edc7ba
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,29 @@ resource "azurerm_dns_a_record" "mtls_fake" {
}
}

resource "azurerm_dns_a_record" "mtls_keycloak" {
name = "mtls.kc.${local.DEPLOYMENT_NAME}"
zone_name = data.azurerm_dns_zone.this.name
resource_group_name = data.azurerm_dns_zone.this.resource_group_name
ttl = 300
target_resource_id = azurerm_public_ip.this.id
tags = {
"fi.fdf.pilvi.expires" : local.expires
backup = "nobackup"
}
}

resource "azurerm_dns_a_record" "keycloak" {
name = "kc.${local.DEPLOYMENT_NAME}"
zone_name = data.azurerm_dns_zone.this.name
resource_group_name = data.azurerm_dns_zone.this.resource_group_name
ttl = 300
target_resource_id = azurerm_public_ip.this.id
tags = {
"fi.fdf.pilvi.expires" : local.expires
backup = "nobackup"
}
}


resource "azurerm_network_security_group" "this" {
Expand Down

0 comments on commit 8edc7ba

Please sign in to comment.