Skip to content

Commit

Permalink
[#IOPID-2401] updated DNS zone (#1342)
Browse files Browse the repository at this point in the history
  • Loading branch information
arcogabbo authored Dec 6, 2024
1 parent 67ac907 commit 541675f
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/common/_modules/global/modules/dns/dns_ioweb_it.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ resource "azurerm_dns_caa_record" "ioweb_it" {
value = "letsencrypt.org"
}

record {
flags = 0
tag = "issue"
value = "digicert.com"
}

record {
flags = 0
tag = "iodef"
Expand Down
26 changes: 26 additions & 0 deletions src/domains/ioweb-common/06_cdn_itn.tf
Original file line number Diff line number Diff line change
Expand Up @@ -198,3 +198,29 @@ resource "azurerm_cdn_frontdoor_custom_domain_association" "portal_cdn_domain_as
cdn_frontdoor_route_ids = [azurerm_cdn_frontdoor_route.portal_cdn_route.id]
}
#####################

#####################
# DNS ZONE UPDATE
#####################
resource "azurerm_dns_cname_record" "account" {
name = "account"
zone_name = data.azurerm_dns_zone.ioapp_it.name
resource_group_name = data.azurerm_resource_group.core_ext.name
ttl = "3600"
target_resource_id = azurerm_cdn_frontdoor_endpoint.portal_cdn_endpoint.id
}

resource "azurerm_dns_txt_record" "dns_txt" {
name = "_dnsauth.account"
zone_name = data.azurerm_dns_zone.ioapp_it.name
resource_group_name = data.azurerm_resource_group.core_ext.name
ttl = "3600"
record {
value = azurerm_cdn_frontdoor_custom_domain.portal_custom_domain.validation_token
}
tags = merge(var.tags, {
origin = "account.ioapp.it"
cdn = azurerm_cdn_frontdoor_profile.portal_profile.name
})
}
####################
2 changes: 2 additions & 0 deletions src/domains/ioweb-common/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
| [azurerm_cdn_frontdoor_rule.portal_cdn_rule_global](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/cdn_frontdoor_rule) | resource |
| [azurerm_cdn_frontdoor_rule.portal_cdn_rule_rootfiles](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/cdn_frontdoor_rule) | resource |
| [azurerm_cdn_frontdoor_rule_set.portal_cdn_rule_set](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/cdn_frontdoor_rule_set) | resource |
| [azurerm_dns_cname_record.account](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/dns_cname_record) | resource |
| [azurerm_dns_txt_record.dns_txt](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/dns_txt_record) | resource |
| [azurerm_key_vault_access_policy.access_policy_auth_n_identity_infra_cd](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/key_vault_access_policy) | resource |
| [azurerm_key_vault_access_policy.access_policy_auth_n_identity_infra_ci](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/key_vault_access_policy) | resource |
| [azurerm_key_vault_access_policy.access_policy_io_infra_cd](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/key_vault_access_policy) | resource |
Expand Down

0 comments on commit 541675f

Please sign in to comment.