Skip to content

Commit

Permalink
pre-emptively add subdomains for BattleLog product (soon in deploymen…
Browse files Browse the repository at this point in the history
…t near you)
  • Loading branch information
rambo committed Feb 3, 2025
1 parent b9c7ad5 commit ae26033
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,11 @@ No modules.

| Name | Type |
|------|------|
| [azurerm_dns_a_record.bl](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/dns_a_record) | resource |
| [azurerm_dns_a_record.fake](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/dns_a_record) | resource |
| [azurerm_dns_a_record.kc](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/dns_a_record) | resource |
| [azurerm_dns_a_record.mtls](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/dns_a_record) | resource |
| [azurerm_dns_a_record.mtls_bl](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/dns_a_record) | resource |
| [azurerm_dns_a_record.mtls_fake](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/dns_a_record) | resource |
| [azurerm_dns_a_record.mtls_kc](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/dns_a_record) | resource |
| [azurerm_dns_a_record.mtls_tak](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/dns_a_record) | resource |
Expand Down
25 changes: 25 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,31 @@ resource "azurerm_dns_a_record" "mtls_fake" {
}
}

resource "azurerm_dns_a_record" "bl" {
name = "bl.${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" "mtls_bl" {
name = "mtls.bl.${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" "kc" {
name = "kc.${local.DEPLOYMENT_NAME}"
zone_name = data.azurerm_dns_zone.this.name
Expand Down

0 comments on commit ae26033

Please sign in to comment.