Skip to content

Commit

Permalink
feat: PAYMCLOUD-186 - added status page cname record (#2638)
Browse files Browse the repository at this point in the history
PAYMCLOUD-186 - added status page cname record
  • Loading branch information
mamari90 authored Dec 6, 2024
1 parent 13bc4c2 commit 5d6ac4f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/next-core/01_dns_public.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ resource "azurerm_dns_zone" "public_prf" {
tags = var.tags
}

resource "azurerm_dns_cname_record" "statuspage_platform_pagopa_it_cname" {
count = var.env_short == "p" ? 1 : 0
name = "status"
zone_name = azurerm_dns_zone.public[0].name
resource_group_name = azurerm_resource_group.rg_vnet.name
record = "statuspage.betteruptime.com"
ttl = var.dns_default_ttl_sec
tags = var.tags
}

# Prod ONLY record to DEV public DNS delegation
resource "azurerm_dns_ns_record" "dev_pagopa_it_ns" {
count = var.env_short == "p" ? 1 : 0
Expand Down
1 change: 1 addition & 0 deletions src/next-core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@
| [azurerm_dns_caa_record.api_platform_pagopa_it](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/dns_caa_record) | resource |
| [azurerm_dns_caa_record.api_platform_pagopa_it_prf](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/dns_caa_record) | resource |
| [azurerm_dns_caa_record.wisp2_pagopa_it](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/dns_caa_record) | resource |
| [azurerm_dns_cname_record.statuspage_platform_pagopa_it_cname](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/dns_cname_record) | resource |
| [azurerm_dns_ns_record.dev_pagopa_it_ns](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/dns_ns_record) | resource |
| [azurerm_dns_ns_record.dev_wisp2](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/dns_ns_record) | resource |
| [azurerm_dns_ns_record.prf_pagopa_it_ns](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/dns_ns_record) | resource |
Expand Down

0 comments on commit 5d6ac4f

Please sign in to comment.