Conversation
- Introduced logic to handle existing CDN FrontDoor profiles. - Updated resource references to use local variables for profile ID and identity. - Added WAF policy and security policy resources with conditional creation. - Enhanced origin configurations to support managed identity for storage access. - Updated outputs to reflect changes in resource handling.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…, add profile SKU check for WAF compatibility
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
🦋 Changeset detectedLatest commit: ff26d19 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Tip ✅ All Terraform module locks are up to dateNo module changes detected - everything is in sync! 📋 Pre-commit Output LogGenerated on Tue Feb 3 08:59:57 UTC 2026 |
📖 Terraform Plan (infra/resources/prod) - successShow Plan # module.mcp_registry.module.portal.azurerm_cdn_frontdoor_endpoint.this will be updated in-place
~ resource "azurerm_cdn_frontdoor_endpoint" "this" {
id = "/subscriptions/02a23258-2e41-433c-8e9a-465b99e77bca/resourceGroups/dx-p-itn-common-rg-01/providers/Microsoft.Cdn/profiles/dx-p-weu-mcp-registry-afd-01/afdEndpoints/dx-p-weu-mcp-registry-fde-01"
name = "dx-p-weu-mcp-registry-fde-01"
~ tags = {
"CostCenter" = "TS000 - Tecnologia e Servizi"
"CreatedBy" = "Terraform"
"Environment" = "Prod"
"ManagementTeam" = "Developer Experience"
"ModuleName" = "azure_cdn"
"ModuleSource" = "DX"
~ "ModuleVersion" = "0.3.2" -> "0.4.0"
"Owner" = "DevEx"
"Source" = "https://github.com/pagopa/dx/blob/main/infra/resources/prod"
}
# (3 unchanged attributes hidden)
}
# module.mcp_registry.module.portal.azurerm_cdn_frontdoor_profile.this will be updated in-place
~ resource "azurerm_cdn_frontdoor_profile" "this" {
id = "/subscriptions/02a23258-2e41-433c-8e9a-465b99e77bca/resourceGroups/dx-p-itn-common-rg-01/providers/Microsoft.Cdn/profiles/dx-p-weu-mcp-registry-afd-01"
name = "dx-p-weu-mcp-registry-afd-01"
~ tags = {
"CostCenter" = "TS000 - Tecnologia e Servizi"
"CreatedBy" = "Terraform"
"Environment" = "Prod"
"ManagementTeam" = "Developer Experience"
"ModuleName" = "azure_cdn"
"ModuleSource" = "DX"
~ "ModuleVersion" = "0.3.2" -> "0.4.0"
"Owner" = "DevEx"
"Source" = "https://github.com/pagopa/dx/blob/main/infra/resources/prod"
}
# (4 unchanged attributes hidden)
# (1 unchanged block hidden)
}
# module.mcp_registry.module.portal.azurerm_dns_cname_record.this["mcp.dx.pagopa.it"] will be updated in-place
~ resource "azurerm_dns_cname_record" "this" {
id = "/subscriptions/02a23258-2e41-433c-8e9a-465b99e77bca/resourceGroups/dx-p-itn-network-rg-01/providers/Microsoft.Network/dnsZones/dx.pagopa.it/CNAME/mcp"
name = "mcp"
~ tags = {
"CostCenter" = "TS000 - Tecnologia e Servizi"
"CreatedBy" = "Terraform"
"Environment" = "Prod"
"ManagementTeam" = "Developer Experience"
"ModuleName" = "azure_cdn"
"ModuleSource" = "DX"
~ "ModuleVersion" = "0.3.2" -> "0.4.0"
"Owner" = "DevEx"
"Source" = "https://github.com/pagopa/dx/blob/main/infra/resources/prod"
}
# (6 unchanged attributes hidden)
}
# module.mcp_registry.module.portal.azurerm_dns_txt_record.validation["mcp.dx.pagopa.it"] will be updated in-place
~ resource "azurerm_dns_txt_record" "validation" {
id = "/subscriptions/02a23258-2e41-433c-8e9a-465b99e77bca/resourceGroups/dx-p-itn-network-rg-01/providers/Microsoft.Network/dnsZones/dx.pagopa.it/TXT/_dnsauth.mcp"
name = "_dnsauth.mcp"
~ tags = {
"Cdn" = "dx-p-weu-mcp-registry-afd-01"
"CostCenter" = "TS000 - Tecnologia e Servizi"
"CreatedBy" = "Terraform"
"Environment" = "Prod"
"ManagementTeam" = "Developer Experience"
"ModuleName" = "azure_cdn"
"ModuleSource" = "DX"
~ "ModuleVersion" = "0.3.2" -> "0.4.0"
"Origin" = "mcp.dx.pagopa.it"
"Owner" = "DevEx"
"Source" = "https://github.com/pagopa/dx/blob/main/infra/resources/prod"
}
# (4 unchanged attributes hidden)
# (1 unchanged block hidden)
}
Plan: 0 to add, 4 to change, 0 to destroy.
Warning: Argument is deprecated
with module.mcp_registry.module.portal.azurerm_cdn_frontdoor_custom_domain.this["mcp.dx.pagopa.it"],
on .terraform/modules/mcp_registry.portal/custom_domain.tf line 14, in resource "azurerm_cdn_frontdoor_custom_domain" "this":
14: resource "azurerm_cdn_frontdoor_custom_domain" "this" {
As of March 1, 2025, support for 'TLS10' will be retired from Azure Front
Door, therefore the 'TLS10' property value will be removed in v5.0 of the
provider. |
|
🎉 All dependencies have been resolved ! |
3918e85 to
ff26d19
Compare
📋 Pre-commit Output LogGenerated on Fri Feb 6 12:08:28 UTC 2026 |
|
|
||
| data "azurerm_resource_group" "integration" { | ||
| name = provider::dx::resource_name(merge(local.naming_config, { | ||
| name = "integration", |
There was a problem hiding this comment.
| name = "integration", | |
| name = "e2e", |
There was a problem hiding this comment.
I know it's not ideal, but to avoid creating two identical CDNs, I leveraged the existing integration one. Do you think it would be better to create a dedicated one for E2E as well?
There was a problem hiding this comment.
As discussed in this morning, I believe it'd be better to have two different infrastructures for the two kind of tests. Keep in mind that also foundational infrastructure (vnet, peps, etc.) is also doubled
| @@ -0,0 +1,71 @@ | |||
|
|
|||
| data "azurerm_resource_group" "integration" { | |||
There was a problem hiding this comment.
| data "azurerm_resource_group" "integration" { | |
| data "azurerm_resource_group" "e2e" { |
This pull request introduces new test format with Unit, Contract, Integration and E2E tests.
depends-on: #1265
Resolves: CES-1661