Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#PE-932] Changed references to new cgn-xxx-02 functions under shared service plan #1411

Merged
merged 8 commits into from
Feb 10, 2025

Conversation

michaeldisaro
Copy link
Contributor

Motivation and Context

We migrated cgn functions under a shared service plan.

Major Changes

We are pointing new functions app.

Testing

  • manually changed pointers and checked App Insights

@michaeldisaro
Copy link
Contributor Author

I will merge this, after I'll have changed all pointers manually and checked there are no impacts.

Copy link

github-actions bot commented Feb 7, 2025

Terraform Plan ('src/domains/cgn/prod') 📖

Terraform Plan
Note: Objects have changed outside of Terraform

Terraform detected the following changes made outside of Terraform since the
last "terraform apply" which may have affected this plan:

  # module.cosmos.module.cosmos_account_cgn.azurerm_cosmosdb_account.this has changed
  ~ resource "azurerm_cosmosdb_account" "this" {
        id                                       = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-cgn/providers/Microsoft.DocumentDB/databaseAccounts/io-p-cosmos-cgn"
        name                                     = "io-p-cosmos-cgn"
      ~ read_endpoints                           = [
          ~ "https://io-p-cosmos-cgn-westeurope.documents.azure.com:443/" -> "https://io-p-cosmos-cgn-italynorth.documents.azure.com:443/",
          ~ "https://io-p-cosmos-cgn-italynorth.documents.azure.com:443/" -> "https://io-p-cosmos-cgn-spaincentral.documents.azure.com:443/",
        ]
        tags                                     = {
            "CostCenter"     = "TS310 - PAGAMENTI & SERVIZI"
            "CreatedBy"      = "Terraform"
            "Environment"    = "Prod"
            "ManagementTeam" = "IO Enti & Servizi"
            "Owner"          = "IO"
            "Source"         = "https://github.com/pagopa/io-infra/blob/main/src/domains/cgn/prod"
        }
      ~ write_endpoints                          = [
          ~ "https://io-p-cosmos-cgn-westeurope.documents.azure.com:443/" -> "https://io-p-cosmos-cgn-italynorth.documents.azure.com:443/",
        ]
        # (28 unchanged attributes hidden)

        # (6 unchanged blocks hidden)
    }


Unless you have made equivalent changes to your configuration, or ignored the
relevant attributes using ignore_changes, the following plan may include
actions to undo or respond to these changes.

─────────────────────────────────────────────────────────────────────────────

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  ~ update in-place
  - destroy

Terraform will perform the following actions:

  # module.functions.azurerm_monitor_autoscale_setting.function_cgn will be destroyed
  # (because azurerm_monitor_autoscale_setting.function_cgn is not in configuration)
  - resource "azurerm_monitor_autoscale_setting" "function_cgn" {
      - enabled             = true -> null
      - id                  = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Insights/autoScaleSettings/io-p-cgn-fn-autoscale" -> null
      - location            = "westeurope" -> null
      - name                = "io-p-cgn-fn-autoscale" -> null
      - resource_group_name = "io-p-cgn-be-rg" -> null
      - tags                = {} -> null
      - target_resource_id  = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Web/serverFarms/io-p-plan-cgn-common" -> null

      - profile {
          - name = "default" -> null

          - capacity {
              - default = 10 -> null
              - maximum = 30 -> null
              - minimum = 1 -> null
            }

          - rule {
              - metric_trigger {
                  - divide_by_instance_count = false -> null
                  - metric_name              = "Requests" -> null
                  - metric_namespace         = "microsoft.web/sites" -> null
                  - metric_resource_id       = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Web/sites/io-p-cgn-fn" -> null
                  - operator                 = "GreaterThan" -> null
                  - statistic                = "Average" -> null
                  - threshold                = 3000 -> null
                  - time_aggregation         = "Average" -> null
                  - time_grain               = "PT1M" -> null
                  - time_window              = "PT5M" -> null
                }
              - scale_action {
                  - cooldown  = "PT5M" -> null
                  - direction = "Increase" -> null
                  - type      = "ChangeCount" -> null
                  - value     = 2 -> null
                }
            }
          - rule {
              - metric_trigger {
                  - divide_by_instance_count = false -> null
                  - metric_name              = "CpuPercentage" -> null
                  - metric_namespace         = "microsoft.web/serverfarms" -> null
                  - metric_resource_id       = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Web/serverFarms/io-p-plan-cgn-common" -> null
                  - operator                 = "GreaterThan" -> null
                  - statistic                = "Average" -> null
                  - threshold                = 45 -> null
                  - time_aggregation         = "Average" -> null
                  - time_grain               = "PT1M" -> null
                  - time_window              = "PT5M" -> null
                }
              - scale_action {
                  - cooldown  = "PT5M" -> null
                  - direction = "Increase" -> null
                  - type      = "ChangeCount" -> null
                  - value     = 2 -> null
                }
            }
          - rule {
              - metric_trigger {
                  - divide_by_instance_count = false -> null
                  - metric_name              = "Requests" -> null
                  - metric_namespace         = "microsoft.web/sites" -> null
                  - metric_resource_id       = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Web/sites/io-p-cgn-fn" -> null
                  - operator                 = "LessThan" -> null
                  - statistic                = "Average" -> null
                  - threshold                = 2000 -> null
                  - time_aggregation         = "Average" -> null
                  - time_grain               = "PT1M" -> null
                  - time_window              = "PT5M" -> null
                }
              - scale_action {
                  - cooldown  = "PT20M" -> null
                  - direction = "Decrease" -> null
                  - type      = "ChangeCount" -> null
                  - value     = 1 -> null
                }
            }
          - rule {
              - metric_trigger {
                  - divide_by_instance_count = false -> null
                  - metric_name              = "CpuPercentage" -> null
                  - metric_namespace         = "microsoft.web/serverfarms" -> null
                  - metric_resource_id       = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Web/serverFarms/io-p-plan-cgn-common" -> null
                  - operator                 = "LessThan" -> null
                  - statistic                = "Average" -> null
                  - threshold                = 30 -> null
                  - time_aggregation         = "Average" -> null
                  - time_grain               = "PT1M" -> null
                  - time_window              = "PT5M" -> null
                }
              - scale_action {
                  - cooldown  = "PT20M" -> null
                  - direction = "Decrease" -> null
                  - type      = "ChangeCount" -> null
                  - value     = 1 -> null
                }
            }
        }
    }

  # module.functions.azurerm_monitor_metric_alert.function_cgn_health_check will be destroyed
  # (because azurerm_monitor_metric_alert.function_cgn_health_check is not in configuration)
  - resource "azurerm_monitor_metric_alert" "function_cgn_health_check" {
      - auto_mitigate            = false -> null
      - description              = "io-p-cgn-fn health check failed" -> null
      - enabled                  = true -> null
      - frequency                = "PT5M" -> null
      - id                       = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Insights/metricAlerts/io-p-cgn-fn-health-check-failed" -> null
      - name                     = "io-p-cgn-fn-health-check-failed" -> null
      - resource_group_name      = "io-p-cgn-be-rg" -> null
      - scopes                   = [
          - "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Web/sites/io-p-cgn-fn",
        ] -> null
      - severity                 = 1 -> null
      - tags                     = {} -> null
      - window_size              = "PT5M" -> null
        # (2 unchanged attributes hidden)

      - action {
          - action_group_id    = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Insights/actionGroups/ioperror" -> null
          - webhook_properties = {} -> null
        }

      - criteria {
          - aggregation            = "Average" -> null
          - metric_name            = "HealthCheckStatus" -> null
          - metric_namespace       = "Microsoft.Web/sites" -> null
          - operator               = "LessThan" -> null
          - skip_metric_validation = false -> null
          - threshold              = 50 -> null
        }
    }

  # module.functions.azurerm_monitor_metric_alert.function_cgn_merchant_health_check will be destroyed
  # (because azurerm_monitor_metric_alert.function_cgn_merchant_health_check is not in configuration)
  - resource "azurerm_monitor_metric_alert" "function_cgn_merchant_health_check" {
      - auto_mitigate            = false -> null
      - description              = "io-p-cgn-merchant-fn health check failed" -> null
      - enabled                  = false -> null
      - frequency                = "PT5M" -> null
      - id                       = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Insights/metricAlerts/io-p-cgn-merchant-fn-health-check-failed" -> null
      - name                     = "io-p-cgn-merchant-fn-health-check-failed" -> null
      - resource_group_name      = "io-p-cgn-be-rg" -> null
      - scopes                   = [
          - "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Web/sites/io-p-cgn-merchant-fn",
        ] -> null
      - severity                 = 1 -> null
      - tags                     = {} -> null
      - window_size              = "PT5M" -> null
        # (2 unchanged attributes hidden)

      - action {
          - action_group_id    = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Insights/actionGroups/ioperror" -> null
          - webhook_properties = {} -> null
        }

      - criteria {
          - aggregation            = "Average" -> null
          - metric_name            = "HealthCheckStatus" -> null
          - metric_namespace       = "Microsoft.Web/sites" -> null
          - operator               = "LessThan" -> null
          - skip_metric_validation = false -> null
          - threshold              = 50 -> null
        }
    }

  # module.functions.azurerm_private_endpoint.function_sites will be destroyed
  # (because azurerm_private_endpoint.function_sites is not in configuration)
  - resource "azurerm_private_endpoint" "function_sites" {
      - custom_dns_configs            = [] -> null
      - id                            = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Network/privateEndpoints/io-p-cgn-fn-pep" -> null
      - location                      = "westeurope" -> null
      - name                          = "io-p-cgn-fn-pep" -> null
      - network_interface             = [
          - {
              - id   = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Network/networkInterfaces/io-p-cgn-fn-pep.nic.dac0f632-fcff-469c-868d-3f509fa4bfc1"
              - name = "io-p-cgn-fn-pep.nic.dac0f632-fcff-469c-868d-3f509fa4bfc1"
            },
        ] -> null
      - private_dns_zone_configs      = [
          - {
              - id                  = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Network/privateEndpoints/io-p-cgn-fn-pep/privateDnsZoneGroups/private-dns-zone-group/privateDnsZoneConfigs/privatelink.azurewebsites.net"
              - name                = "privatelink.azurewebsites.net"
              - private_dns_zone_id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Network/privateDnsZones/privatelink.azurewebsites.net"
              - record_sets         = [
                  - {
                      - fqdn         = "io-p-cgn-fn.privatelink.azurewebsites.net"
                      - ip_addresses = [
                          - "10.0.240.90",
                        ]
                      - name         = "io-p-cgn-fn"
                      - ttl          = 10
                      - type         = "A"
                    },
                  - {
                      - fqdn         = "io-p-cgn-fn.scm.privatelink.azurewebsites.net"
                      - ip_addresses = [
                          - "10.0.240.90",
                        ]
                      - name         = "io-p-cgn-fn.scm"
                      - ttl          = 10
                      - type         = "A"
                    },
                ]
            },
        ] -> null
      - resource_group_name           = "io-p-cgn-be-rg" -> null
      - subnet_id                     = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Network/virtualNetworks/io-p-vnet-common/subnets/pendpoints" -> null
      - tags                          = {
          - "CostCenter"     = "TS310 - PAGAMENTI & SERVIZI"
          - "CreatedBy"      = "Terraform"
          - "Environment"    = "Prod"
          - "ManagementTeam" = "IO Enti & Servizi"
          - "Owner"          = "IO"
          - "Source"         = "https://github.com/pagopa/io-infra/blob/main/src/domains/cgn/prod"
        } -> null
        # (1 unchanged attribute hidden)

      - private_dns_zone_group {
          - id                   = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Network/privateEndpoints/io-p-cgn-fn-pep/privateDnsZoneGroups/private-dns-zone-group" -> null
          - name                 = "private-dns-zone-group" -> null
          - private_dns_zone_ids = [
              - "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Network/privateDnsZones/privatelink.azurewebsites.net",
            ] -> null
        }

      - private_service_connection {
          - is_manual_connection              = false -> null
          - name                              = "io-p-cgn-fn-pep" -> null
          - private_connection_resource_id    = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Web/sites/io-p-cgn-fn" -> null
          - private_ip_address                = "10.0.240.90" -> null
          - subresource_names                 = [
              - "sites",
            ] -> null
            # (2 unchanged attributes hidden)
        }
    }

  # module.functions.azurerm_private_endpoint.staging_function_sites will be destroyed
  # (because azurerm_private_endpoint.staging_function_sites is not in configuration)
  - resource "azurerm_private_endpoint" "staging_function_sites" {
      - custom_dns_configs            = [] -> null
      - id                            = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Network/privateEndpoints/io-p-cgn-fn-staging-pep" -> null
      - location                      = "westeurope" -> null
      - name                          = "io-p-cgn-fn-staging-pep" -> null
      - network_interface             = [
          - {
              - id   = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Network/networkInterfaces/io-p-cgn-fn-staging-pep.nic.0685523c-24fb-4ade-b27e-dca36304da3a"
              - name = "io-p-cgn-fn-staging-pep.nic.0685523c-24fb-4ade-b27e-dca36304da3a"
            },
        ] -> null
      - private_dns_zone_configs      = [
          - {
              - id                  = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Network/privateEndpoints/io-p-cgn-fn-staging-pep/privateDnsZoneGroups/private-dns-zone-group/privateDnsZoneConfigs/privatelink.azurewebsites.net"
              - name                = "privatelink.azurewebsites.net"
              - private_dns_zone_id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Network/privateDnsZones/privatelink.azurewebsites.net"
              - record_sets         = [
                  - {
                      - fqdn         = "io-p-cgn-fn-staging.privatelink.azurewebsites.net"
                      - ip_addresses = [
                          - "10.0.240.126",
                        ]
                      - name         = "io-p-cgn-fn-staging"
                      - ttl          = 10
                      - type         = "A"
                    },
                  - {
                      - fqdn         = "io-p-cgn-fn-staging.scm.privatelink.azurewebsites.net"
                      - ip_addresses = [
                          - "10.0.240.126",
                        ]
                      - name         = "io-p-cgn-fn-staging.scm"
                      - ttl          = 10
                      - type         = "A"
                    },
                ]
            },
        ] -> null
      - resource_group_name           = "io-p-cgn-be-rg" -> null
      - subnet_id                     = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Network/virtualNetworks/io-p-vnet-common/subnets/pendpoints" -> null
      - tags                          = {
          - "CostCenter"     = "TS310 - PAGAMENTI & SERVIZI"
          - "CreatedBy"      = "Terraform"
          - "Environment"    = "Prod"
          - "ManagementTeam" = "IO Enti & Servizi"
          - "Owner"          = "IO"
          - "Source"         = "https://github.com/pagopa/io-infra/blob/main/src/domains/cgn/prod"
        } -> null
        # (1 unchanged attribute hidden)

      - private_dns_zone_group {
          - id                   = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Network/privateEndpoints/io-p-cgn-fn-staging-pep/privateDnsZoneGroups/private-dns-zone-group" -> null
          - name                 = "private-dns-zone-group" -> null
          - private_dns_zone_ids = [
              - "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Network/privateDnsZones/privatelink.azurewebsites.net",
            ] -> null
        }

      - private_service_connection {
          - is_manual_connection              = false -> null
          - name                              = "io-p-cgn-fn-pep" -> null
          - private_connection_resource_id    = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Web/sites/io-p-cgn-fn" -> null
          - private_ip_address                = "10.0.240.126" -> null
          - subresource_names                 = [
              - "sites-staging",
            ] -> null
            # (2 unchanged attributes hidden)
        }
    }

  # module.cosmos.module.cosmos_account_cgn.azurerm_monitor_metric_alert.cosmos_db_provisioned_throughput_exceeded[0] will be updated in-place
  ~ resource "azurerm_monitor_metric_alert" "cosmos_db_provisioned_throughput_exceeded" {
        id                       = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-cgn/providers/Microsoft.Insights/metricAlerts/[CGN | io-p-cosmos-cgn] Provisioned Throughput Exceeded"
        name                     = "[CGN | io-p-cosmos-cgn] Provisioned Throughput Exceeded"
        tags                     = {
            "CostCenter"     = "TS310 - PAGAMENTI & SERVIZI"
            "CreatedBy"      = "Terraform"
            "Environment"    = "Prod"
            "ManagementTeam" = "IO Enti & Servizi"
            "Owner"          = "IO"
            "Source"         = "https://github.com/pagopa/io-infra/blob/main/src/domains/cgn/prod"
        }
        # (10 unchanged attributes hidden)

      ~ criteria {
            # (6 unchanged attributes hidden)

          ~ dimension {
                name     = "Region"
              ~ values   = [
                  ~ "westeurope" -> "italynorth",
                ]
                # (1 unchanged attribute hidden)
            }

            # (2 unchanged blocks hidden)
        }
    }

  # module.functions.module.function_cgn.azurerm_monitor_metric_alert.function_app_health_check[0] will be destroyed
  # (because azurerm_monitor_metric_alert.function_app_health_check is not in configuration)
  - resource "azurerm_monitor_metric_alert" "function_app_health_check" {
      - auto_mitigate            = false -> null
      - description              = "Function availability is under threshold level. Runbook: -" -> null
      - enabled                  = true -> null
      - frequency                = "PT5M" -> null
      - id                       = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Insights/metricAlerts/[io-p-cgn-fn] Health Check Failed" -> null
      - name                     = "[io-p-cgn-fn] Health Check Failed" -> null
      - resource_group_name      = "io-p-cgn-be-rg" -> null
      - scopes                   = [
          - "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Web/sites/io-p-cgn-fn",
        ] -> null
      - severity                 = 1 -> null
      - tags                     = {} -> null
      - window_size              = "PT5M" -> null
        # (2 unchanged attributes hidden)

      - criteria {
          - aggregation            = "Average" -> null
          - metric_name            = "HealthCheckStatus" -> null
          - metric_namespace       = "Microsoft.Web/sites" -> null
          - operator               = "LessThan" -> null
          - skip_metric_validation = false -> null
          - threshold              = 50 -> null
        }
    }

  # module.functions.module.function_cgn.azurerm_private_endpoint.blob[0] will be destroyed
  # (because azurerm_private_endpoint.blob is not in configuration)
  - resource "azurerm_private_endpoint" "blob" {
      - custom_dns_configs            = [] -> null
      - id                            = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Network/privateEndpoints/iopcgnfnsdt-blob-endpoint" -> null
      - location                      = "westeurope" -> null
      - name                          = "iopcgnfnsdt-blob-endpoint" -> null
      - network_interface             = [
          - {
              - id   = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Network/networkInterfaces/iopcgnfnsdt-blob-endpoint.nic.195f2d01-019f-4397-bcc9-30ee94b0d527"
              - name = "iopcgnfnsdt-blob-endpoint.nic.195f2d01-019f-4397-bcc9-30ee94b0d527"
            },
        ] -> null
      - private_dns_zone_configs      = [
          - {
              - id                  = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Network/privateEndpoints/iopcgnfnsdt-blob-endpoint/privateDnsZoneGroups/private-dns-zone-group/privateDnsZoneConfigs/privatelink.blob.core.windows.net"
              - name                = "privatelink.blob.core.windows.net"
              - private_dns_zone_id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Network/privateDnsZones/privatelink.blob.core.windows.net"
              - record_sets         = [
                  - {
                      - fqdn         = "iopcgnfnsdt.privatelink.blob.core.windows.net"
                      - ip_addresses = [
                          - "10.0.240.77",
                        ]
                      - name         = "iopcgnfnsdt"
                      - ttl          = 10
                      - type         = "A"
                    },
                ]
            },
        ] -> null
      - resource_group_name           = "io-p-cgn-be-rg" -> null
      - subnet_id                     = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Network/virtualNetworks/io-p-vnet-common/subnets/pendpoints" -> null
      - tags                          = {
          - "CostCenter"     = "TS310 - PAGAMENTI & SERVIZI"
          - "CreatedBy"      = "Terraform"
          - "Environment"    = "Prod"
          - "ManagementTeam" = "IO Enti & Servizi"
          - "Owner"          = "IO"
          - "Source"         = "https://github.com/pagopa/io-infra/blob/main/src/domains/cgn/prod"
        } -> null
        # (1 unchanged attribute hidden)

      - private_dns_zone_group {
          - id                   = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Network/privateEndpoints/iopcgnfnsdt-blob-endpoint/privateDnsZoneGroups/private-dns-zone-group" -> null
          - name                 = "private-dns-zone-group" -> null
          - private_dns_zone_ids = [
              - "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Network/privateDnsZones/privatelink.blob.core.windows.net",
            ] -> null
        }

      - private_service_connection {
          - is_manual_connection              = false -> null
          - name                              = "iopcgnfnsdt-blob" -> null
          - private_connection_resource_id    = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Storage/storageAccounts/iopcgnfnsdt" -> null
          - private_ip_address                = "10.0.240.77" -> null
          - subresource_names                 = [
              - "blob",
            ] -> null
            # (2 unchanged attributes hidden)
        }
    }

  # module.functions.module.function_cgn.azurerm_private_endpoint.queue[0] will be destroyed
  # (because azurerm_private_endpoint.queue is not in configuration)
  - resource "azurerm_private_endpoint" "queue" {
      - custom_dns_configs            = [] -> null
      - id                            = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Network/privateEndpoints/iopcgnfnsdt-queue-endpoint" -> null
      - location                      = "westeurope" -> null
      - name                          = "iopcgnfnsdt-queue-endpoint" -> null
      - network_interface             = [
          - {
              - id   = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Network/networkInterfaces/iopcgnfnsdt-queue-endpoint.nic.68d4c482-47d3-4080-9ef8-a2fa777a659d"
              - name = "iopcgnfnsdt-queue-endpoint.nic.68d4c482-47d3-4080-9ef8-a2fa777a659d"
            },
        ] -> null
      - private_dns_zone_configs      = [
          - {
              - id                  = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Network/privateEndpoints/iopcgnfnsdt-queue-endpoint/privateDnsZoneGroups/private-dns-zone-group/privateDnsZoneConfigs/privatelink.queue.core.windows.net"
              - name                = "privatelink.queue.core.windows.net"
              - private_dns_zone_id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Network/privateDnsZones/privatelink.queue.core.windows.net"
              - record_sets         = [
                  - {
                      - fqdn         = "iopcgnfnsdt.privatelink.queue.core.windows.net"
                      - ip_addresses = [
                          - "10.0.240.78",
                        ]
                      - name         = "iopcgnfnsdt"
                      - ttl          = 10
                      - type         = "A"
                    },
                ]
            },
        ] -> null
      - resource_group_name           = "io-p-cgn-be-rg" -> null
      - subnet_id                     = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Network/virtualNetworks/io-p-vnet-common/subnets/pendpoints" -> null
      - tags                          = {
          - "CostCenter"     = "TS310 - PAGAMENTI & SERVIZI"
          - "CreatedBy"      = "Terraform"
          - "Environment"    = "Prod"
          - "ManagementTeam" = "IO Enti & Servizi"
          - "Owner"          = "IO"
          - "Source"         = "https://github.com/pagopa/io-infra/blob/main/src/domains/cgn/prod"
        } -> null
        # (1 unchanged attribute hidden)

      - private_dns_zone_group {
          - id                   = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Network/privateEndpoints/iopcgnfnsdt-queue-endpoint/privateDnsZoneGroups/private-dns-zone-group" -> null
          - name                 = "private-dns-zone-group" -> null
          - private_dns_zone_ids = [
              - "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Network/privateDnsZones/privatelink.queue.core.windows.net",
            ] -> null
        }

      - private_service_connection {
          - is_manual_connection              = false -> null
          - name                              = "iopcgnfnsdt-queue" -> null
          - private_connection_resource_id    = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Storage/storageAccounts/iopcgnfnsdt" -> null
          - private_ip_address                = "10.0.240.78" -> null
          - subresource_names                 = [
              - "queue",
            ] -> null
            # (2 unchanged attributes hidden)
        }
    }

  # module.functions.module.function_cgn.azurerm_private_endpoint.table[0] will be destroyed
  # (because azurerm_private_endpoint.table is not in configuration)
  - resource "azurerm_private_endpoint" "table" {
      - custom_dns_configs            = [] -> null
      - id                            = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Network/privateEndpoints/iopcgnfnsdt-table-endpoint" -> null
      - location                      = "westeurope" -> null
      - name                          = "iopcgnfnsdt-table-endpoint" -> null
      - network_interface             = [
          - {
              - id   = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Network/networkInterfaces/iopcgnfnsdt-table-endpoint.nic.2253a81d-9928-4cad-85f1-35742f187ee6"
              - name = "iopcgnfnsdt-table-endpoint.nic.2253a81d-9928-4cad-85f1-35742f187ee6"
            },
        ] -> null
      - private_dns_zone_configs      = [
          - {
              - id                  = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Network/privateEndpoints/iopcgnfnsdt-table-endpoint/privateDnsZoneGroups/private-dns-zone-group/privateDnsZoneConfigs/privatelink.table.core.windows.net"
              - name                = "privatelink.table.core.windows.net"
              - private_dns_zone_id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Network/privateDnsZones/privatelink.table.core.windows.net"
              - record_sets         = [
                  - {
                      - fqdn         = "iopcgnfnsdt.privatelink.table.core.windows.net"
                      - ip_addresses = [
                          - "10.0.240.76",
                        ]
                      - name         = "iopcgnfnsdt"
                      - ttl          = 10
                      - type         = "A"
                    },
                ]
            },
        ] -> null
      - resource_group_name           = "io-p-cgn-be-rg" -> null
      - subnet_id                     = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Network/virtualNetworks/io-p-vnet-common/subnets/pendpoints" -> null
      - tags                          = {
          - "CostCenter"     = "TS310 - PAGAMENTI & SERVIZI"
          - "CreatedBy"      = "Terraform"
          - "Environment"    = "Prod"
          - "ManagementTeam" = "IO Enti & Servizi"
          - "Owner"          = "IO"
          - "Source"         = "https://github.com/pagopa/io-infra/blob/main/src/domains/cgn/prod"
        } -> null
        # (1 unchanged attribute hidden)

      - private_dns_zone_group {
          - id                   = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Network/privateEndpoints/iopcgnfnsdt-table-endpoint/privateDnsZoneGroups/private-dns-zone-group" -> null
          - name                 = "private-dns-zone-group" -> null
          - private_dns_zone_ids = [
              - "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Network/privateDnsZones/privatelink.table.core.windows.net",
            ] -> null
        }

      - private_service_connection {
          - is_manual_connection              = false -> null
          - name                              = "iopcgnfnsdt-table" -> null
          - private_connection_resource_id    = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Storage/storageAccounts/iopcgnfnsdt" -> null
          - private_ip_address                = "10.0.240.76" -> null
          - subresource_names                 = [
              - "table",
            ] -> null
            # (2 unchanged attributes hidden)
        }
    }

  # module.functions.module.function_cgn_merchant.azurerm_monitor_metric_alert.function_app_health_check[0] will be destroyed
  # (because azurerm_monitor_metric_alert.function_app_health_check is not in configuration)
  - resource "azurerm_monitor_metric_alert" "function_app_health_check" {
      - auto_mitigate            = false -> null
      - description              = "Function availability is under threshold level. Runbook: -" -> null
      - enabled                  = true -> null
      - frequency                = "PT5M" -> null
      - id                       = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Insights/metricAlerts/[io-p-cgn-merchant-fn] Health Check Failed" -> null
      - name                     = "[io-p-cgn-merchant-fn] Health Check Failed" -> null
      - resource_group_name      = "io-p-cgn-be-rg" -> null
      - scopes                   = [
          - "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Web/sites/io-p-cgn-merchant-fn",
        ] -> null
      - severity                 = 1 -> null
      - tags                     = {} -> null
      - window_size              = "PT5M" -> null
        # (2 unchanged attributes hidden)

      - criteria {
          - aggregation            = "Average" -> null
          - metric_name            = "HealthCheckStatus" -> null
          - metric_namespace       = "Microsoft.Web/sites" -> null
          - operator               = "LessThan" -> null
          - skip_metric_validation = false -> null
          - threshold              = 50 -> null
        }
    }

  # module.redis.module.redis_cgn.azurerm_private_endpoint.this[0] will be destroyed
  # (because azurerm_private_endpoint.this is not in configuration)
  - resource "azurerm_private_endpoint" "this" {
      - custom_dns_configs            = [] -> null
      - id                            = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-cgn/providers/Microsoft.Network/privateEndpoints/io-p-redis-cgn-std-private-endpoint" -> null
      - location                      = "westeurope" -> null
      - name                          = "io-p-redis-cgn-std-private-endpoint" -> null
      - network_interface             = [
          - {
              - id   = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-cgn/providers/Microsoft.Network/networkInterfaces/io-p-redis-cgn-std-private-endpoint.nic.18e255e9-af62-4507-9810-3835521c37ce"
              - name = "io-p-redis-cgn-std-private-endpoint.nic.18e255e9-af62-4507-9810-3835521c37ce"
            },
        ] -> null
      - private_dns_zone_configs      = [
          - {
              - id                  = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-cgn/providers/Microsoft.Network/privateEndpoints/io-p-redis-cgn-std-private-endpoint/privateDnsZoneGroups/io-p-redis-cgn-std-private-dns-zone-group/privateDnsZoneConfigs/privatelink.redis.cache.windows.net"
              - name                = "privatelink.redis.cache.windows.net"
              - private_dns_zone_id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Network/privateDnsZones/privatelink.redis.cache.windows.net"
              - record_sets         = [
                  - {
                      - fqdn         = "io-p-redis-cgn-std.privatelink.redis.cache.windows.net"
                      - ip_addresses = [
                          - "10.0.14.4",
                        ]
                      - name         = "io-p-redis-cgn-std"
                      - ttl          = 10
                      - type         = "A"
                    },
                ]
            },
        ] -> null
      - resource_group_name           = "io-p-rg-cgn" -> null
      - subnet_id                     = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Network/virtualNetworks/io-p-vnet-common/subnets/io-p-redis-cgn-snet" -> null
      - tags                          = {
          - "CostCenter"     = "TS310 - PAGAMENTI & SERVIZI"
          - "CreatedBy"      = "Terraform"
          - "Environment"    = "Prod"
          - "ManagementTeam" = "IO Enti & Servizi"
          - "Owner"          = "IO"
          - "Source"         = "https://github.com/pagopa/io-infra/blob/main/src/domains/cgn/prod"
        } -> null
        # (1 unchanged attribute hidden)

      - private_dns_zone_group {
          - id                   = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-cgn/providers/Microsoft.Network/privateEndpoints/io-p-redis-cgn-std-private-endpoint/privateDnsZoneGroups/io-p-redis-cgn-std-private-dns-zone-group" -> null
          - name                 = "io-p-redis-cgn-std-private-dns-zone-group" -> null
          - private_dns_zone_ids = [
              - "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Network/privateDnsZones/privatelink.redis.cache.windows.net",
            ] -> null
        }

      - private_service_connection {
          - is_manual_connection              = false -> null
          - name                              = "io-p-redis-cgn-std-private-service-connection" -> null
          - private_connection_resource_id    = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-cgn/providers/Microsoft.Cache/redis/io-p-redis-cgn-std" -> null
          - private_ip_address                = "10.0.14.4" -> null
          - subresource_names                 = [
              - "redisCache",
            ] -> null
            # (2 unchanged attributes hidden)
        }
    }

  # module.storage_accounts.module.storage_account_cosmos_backup.azurerm_storage_account.this will be updated in-place
  ~ resource "azurerm_storage_account" "this" {
        id                                = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-cgn/providers/Microsoft.Storage/storageAccounts/iopstcosmosbonusbackup"
        name                              = "iopstcosmosbonusbackup"
      ~ public_network_access_enabled     = true -> false
        tags                              = {
            "CostCenter"     = "TS310 - PAGAMENTI & SERVIZI"
            "CreatedBy"      = "Terraform"
            "Environment"    = "Prod"
            "ManagementTeam" = "IO Enti & Servizi"
            "Owner"          = "IO"
            "Source"         = "https://github.com/pagopa/io-infra/blob/main/src/domains/cgn/prod"
        }
        # (41 unchanged attributes hidden)

        # (5 unchanged blocks hidden)
    }

  # module.functions.module.function_cgn.module.storage_account.azurerm_monitor_metric_alert.storage_account_low_availability[0] will be destroyed
  # (because azurerm_monitor_metric_alert.storage_account_low_availability is not in configuration)
  - resource "azurerm_monitor_metric_alert" "storage_account_low_availability" {
      - auto_mitigate            = false -> null
      - description              = "The average availability is less than 99.8%. Runbook: not needed." -> null
      - enabled                  = true -> null
      - frequency                = "PT5M" -> null
      - id                       = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Insights/metricAlerts/[iopcgnfnst] Low Availability" -> null
      - name                     = "[iopcgnfnst] Low Availability" -> null
      - resource_group_name      = "io-p-cgn-be-rg" -> null
      - scopes                   = [
          - "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Storage/storageAccounts/iopcgnfnst",
        ] -> null
      - severity                 = 0 -> null
      - tags                     = {
          - "CostCenter"     = "TS310 - PAGAMENTI & SERVIZI"
          - "CreatedBy"      = "Terraform"
          - "Environment"    = "Prod"
          - "ManagementTeam" = "IO Enti & Servizi"
          - "Owner"          = "IO"
          - "Source"         = "https://github.com/pagopa/io-infra/blob/main/src/domains/cgn/prod"
        } -> null
      - window_size              = "PT5M" -> null
        # (2 unchanged attributes hidden)

      - criteria {
          - aggregation            = "Average" -> null
          - metric_name            = "Availability" -> null
          - metric_namespace       = "Microsoft.Storage/storageAccounts" -> null
          - operator               = "LessThan" -> null
          - skip_metric_validation = false -> null
          - threshold              = 99.8 -> null
        }
    }

  # module.functions.module.function_cgn.module.storage_account_durable_function[0].azurerm_monitor_metric_alert.storage_account_low_availability[0] will be destroyed
  # (because azurerm_monitor_metric_alert.storage_account_low_availability is not in configuration)
  - resource "azurerm_monitor_metric_alert" "storage_account_low_availability" {
      - auto_mitigate            = false -> null
      - description              = "The average availability is less than 99.8%. Runbook: not needed." -> null
      - enabled                  = true -> null
      - frequency                = "PT5M" -> null
      - id                       = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Insights/metricAlerts/[iopcgnfnsdt] Low Availability" -> null
      - name                     = "[iopcgnfnsdt] Low Availability" -> null
      - resource_group_name      = "io-p-cgn-be-rg" -> null
      - scopes                   = [
          - "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Storage/storageAccounts/iopcgnfnsdt",
        ] -> null
      - severity                 = 0 -> null
      - tags                     = {
          - "CostCenter"     = "TS310 - PAGAMENTI & SERVIZI"
          - "CreatedBy"      = "Terraform"
          - "Environment"    = "Prod"
          - "ManagementTeam" = "IO Enti & Servizi"
          - "Owner"          = "IO"
          - "Source"         = "https://github.com/pagopa/io-infra/blob/main/src/domains/cgn/prod"
        } -> null
      - window_size              = "PT5M" -> null
        # (2 unchanged attributes hidden)

      - criteria {
          - aggregation            = "Average" -> null
          - metric_name            = "Availability" -> null
          - metric_namespace       = "Microsoft.Storage/storageAccounts" -> null
          - operator               = "LessThan" -> null
          - skip_metric_validation = false -> null
          - threshold              = 99.8 -> null
        }
    }

  # module.functions.module.function_cgn_merchant.module.storage_account.azurerm_monitor_metric_alert.storage_account_low_availability[0] will be destroyed
  # (because azurerm_monitor_metric_alert.storage_account_low_availability is not in configuration)
  - resource "azurerm_monitor_metric_alert" "storage_account_low_availability" {
      - auto_mitigate            = false -> null
      - description              = "The average availability is less than 99.8%. Runbook: not needed." -> null
      - enabled                  = true -> null
      - frequency                = "PT5M" -> null
      - id                       = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Insights/metricAlerts/[iopcgnmerchantfnst] Low Availability" -> null
      - name                     = "[iopcgnmerchantfnst] Low Availability" -> null
      - resource_group_name      = "io-p-cgn-be-rg" -> null
      - scopes                   = [
          - "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Storage/storageAccounts/iopcgnmerchantfnst",
        ] -> null
      - severity                 = 0 -> null
      - tags                     = {
          - "CostCenter"     = "TS310 - PAGAMENTI & SERVIZI"
          - "CreatedBy"      = "Terraform"
          - "Environment"    = "Prod"
          - "ManagementTeam" = "IO Enti & Servizi"
          - "Owner"          = "IO"
          - "Source"         = "https://github.com/pagopa/io-infra/blob/main/src/domains/cgn/prod"
        } -> null
      - window_size              = "PT5M" -> null
        # (2 unchanged attributes hidden)

      - criteria {
          - aggregation            = "Average" -> null
          - metric_name            = "Availability" -> null
          - metric_namespace       = "Microsoft.Storage/storageAccounts" -> null
          - operator               = "LessThan" -> null
          - skip_metric_validation = false -> null
          - threshold              = 99.8 -> null
        }
    }

Plan: 0 to add, 2 to change, 14 to destroy.

Changes to Outputs:
  - function_app_cgn             = {
      - id   = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Web/sites/io-p-cgn-fn"
      - name = "io-p-cgn-fn"
    } -> null
  - function_app_cgn_merchant    = {
      - id   = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Web/sites/io-p-cgn-merchant-fn"
      - name = "io-p-cgn-merchant-fn"
    } -> null
  - redis                        = {
      - id   = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-cgn/providers/Microsoft.Cache/redis/io-p-redis-cgn-std"
      - name = "io-p-redis-cgn-std"
    } -> null

─────────────────────────────────────────────────────────────────────────────

Note: You didn't use the -out option to save this plan, so Terraform can't
guarantee to take exactly these actions if you run "terraform apply" now.

@michaeldisaro
Copy link
Contributor Author

Manual switch is completed. We can merge as soon as it's reviewed and approved.

Copy link

📖 Terraform Plan ('src/common/prod') - success

Terraform Plan
module.apim_itn.data.azurerm_linux_web_app.cgn_pe_backend_app_01: Still reading... [10s elapsed]
module.apim_weu.data.azurerm_linux_web_app.cgn_pe_backend_app_01: Still reading... [10s elapsed]
data.azurerm_linux_function_app.app_messages_xl[0]: Still reading... [10s elapsed]
data.azurerm_linux_function_app.app_messages_xl[1]: Still reading... [10s elapsed]
data.azurerm_linux_function_app.eucovidcert: Still reading... [10s elapsed]
module.application_gateway_weu.data.azurerm_linux_web_app.ipatente_payments_app_itn: Still reading... [10s elapsed]
data.azurerm_linux_function_app.function_assets_cdn: Still reading... [10s elapsed]
module.application_gateway_weu.data.azurerm_linux_web_app.appservice_selfcare_be: Still reading... [10s elapsed]
data.azurerm_linux_function_app.services_app_backend_function_app: Still reading... [10s elapsed]
data.azurerm_linux_function_app.function_profile: Still reading... [10s elapsed]
module.apim_itn.data.azurerm_linux_web_app.cgn_pe_backend_app_01: Still reading... [20s elapsed]
module.apim_weu.data.azurerm_linux_web_app.cgn_pe_backend_app_01: Still reading... [20s elapsed]
data.azurerm_linux_function_app.app_messages_xl[1]: Still reading... [20s elapsed]
data.azurerm_linux_function_app.eucovidcert: Still reading... [20s elapsed]
module.application_gateway_weu.data.azurerm_linux_web_app.ipatente_payments_app_itn: Still reading... [20s elapsed]
module.application_gateway_weu.data.azurerm_linux_web_app.appservice_selfcare_be: Still reading... [20s elapsed]
data.azurerm_linux_function_app.function_profile: Still reading... [20s elapsed]
module.application_gateway_weu.data.azurerm_linux_web_app.ipatente_vehicles_app_itn: Still reading... [10s elapsed]
module.apim_weu.data.azurerm_linux_web_app.cgn_pe_backend_app_01: Still reading... [30s elapsed]
data.azurerm_linux_function_app.io_fims_user: Still reading... [10s elapsed]
module.application_gateway_weu.data.azurerm_linux_web_app.ipatente_practices_app_itn: Still reading... [10s elapsed]
module.application_gateway_weu.data.azurerm_linux_web_app.ipatente_licences_app_itn: Still reading... [10s elapsed]
module.application_gateway_weu.data.azurerm_linux_web_app.cms_backoffice_app_itn: Still reading... [10s elapsed]
module.application_gateway_weu.data.azurerm_linux_web_app.appservice_continua: Still reading... [10s elapsed]
data.azurerm_linux_function_app.wallet_user: Still reading... [10s elapsed]
data.azurerm_linux_function_app.io_sign_user: Still reading... [10s elapsed]
module.application_gateway_weu.data.azurerm_linux_web_app.ipatente_vehicles_app_itn: Still reading... [20s elapsed]
module.application_gateway_weu.data.azurerm_linux_web_app.session_manager_03: Still reading... [10s elapsed]
data.azurerm_linux_function_app.lollipop_function: Still reading... [10s elapsed]
module.application_gateway_weu.data.azurerm_linux_web_app.ipatente_practices_app_itn: Still reading... [20s elapsed]
module.application_gateway_weu.data.azurerm_linux_web_app.ipatente_licences_app_itn: Still reading... [20s elapsed]
module.application_gateway_weu.data.azurerm_linux_web_app.cms_backoffice_app_itn: Still reading... [20s elapsed]
module.application_gateway_weu.data.azurerm_linux_web_app.appservice_continua: Still reading... [20s elapsed]
module.storage_accounts.azurerm_storage_account.exportdata_weu_01: Preparing import... [id=/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-operations/providers/Microsoft.Storage/storageAccounts/iopstexportdata]
module.application_gateway_weu.data.azurerm_linux_web_app.appservice_devportal_be: Still reading... [10s elapsed]
data.azurerm_linux_function_app.lollipop_function: Still reading... [20s elapsed]
data.azurerm_linux_web_app.firmaconio_selfcare_web_app: Still reading... [10s elapsed]
module.application_gateway_weu.data.azurerm_linux_web_app.fims_op_app: Still reading... [10s elapsed]
module.application_gateway_weu.data.azurerm_linux_web_app.appservice_devportal_be: Still reading... [20s elapsed]
data.azurerm_linux_web_app.firmaconio_selfcare_web_app: Still reading... [20s elapsed]
module.storage_accounts.module.exportdata_weu_01_com_devs.module.storage_account.data.azurerm_storage_account.this["io-p-rg-operations|iopstexportdata"]: Still reading... [10s elapsed]
module.application_gateway_weu.data.azurerm_linux_web_app.fims_op_app: Still reading... [20s elapsed]
module.storage_accounts.module.exportdata_weu_01_com_devs.module.storage_account.data.azurerm_storage_account.this["io-p-rg-operations|iopstexportdata"]: Still reading... [20s elapsed]
module.storage_accounts.module.exportdata_weu_01_com_devs.module.storage_account.data.azurerm_storage_account.this["io-p-rg-operations|iopstexportdata"]: Still reading... [30s elapsed]
module.storage_accounts.module.exportdata_weu_01_com_devs.module.storage_account.data.azurerm_storage_account.this["io-p-rg-operations|iopstexportdata"]: Still reading... [40s elapsed]
module.storage_accounts.module.exportdata_weu_01_com_devs.module.storage_account.data.azurerm_storage_account.this["io-p-rg-operations|iopstexportdata"]: Still reading... [50s elapsed]
module.storage_accounts.module.exportdata_weu_01_com_devs.module.storage_account.data.azurerm_storage_account.this["io-p-rg-operations|iopstexportdata"]: Still reading... [1m0s elapsed]
module.storage_accounts.module.exportdata_weu_01_com_devs.module.storage_account.data.azurerm_storage_account.this["io-p-rg-operations|iopstexportdata"]: Still reading... [1m10s elapsed]
module.storage_accounts.module.exportdata_weu_01_com_devs.module.storage_account.data.azurerm_storage_account.this["io-p-rg-operations|iopstexportdata"]: Still reading... [1m20s elapsed]
module.storage_accounts.module.exportdata_weu_01_com_devs.module.storage_account.data.azurerm_storage_account.this["io-p-rg-operations|iopstexportdata"]: Still reading... [1m30s elapsed]
module.storage_accounts.module.exportdata_weu_01_com_devs.module.storage_account.data.azurerm_storage_account.this["io-p-rg-operations|iopstexportdata"]: Still reading... [1m40s elapsed]
module.storage_accounts.module.exportdata_weu_01_com_devs.module.storage_account.data.azurerm_storage_account.this["io-p-rg-operations|iopstexportdata"]: Still reading... [1m50s elapsed]
module.storage_accounts.module.exportdata_weu_01_com_devs.module.storage_account.data.azurerm_storage_account.this["io-p-rg-operations|iopstexportdata"]: Still reading... [2m0s elapsed]
module.storage_accounts.module.exportdata_weu_01_com_devs.module.storage_account.data.azurerm_storage_account.this["io-p-rg-operations|iopstexportdata"]: Still reading... [2m10s elapsed]
module.storage_accounts.module.exportdata_weu_01_com_devs.module.storage_account.data.azurerm_storage_account.this["io-p-rg-operations|iopstexportdata"]: Still reading... [2m20s elapsed]
module.storage_accounts.module.exportdata_weu_01_com_devs.module.storage_account.data.azurerm_storage_account.this["io-p-rg-operations|iopstexportdata"]: Still reading... [2m30s elapsed]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create
  ~ update in-place
-/+ destroy and then create replacement

Terraform will perform the following actions:

-/+ resource "azurerm_role_assignment" "apim_client_role" {
      ~ id                                     = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-itn-common-rg-01/providers/Microsoft.ApiManagement/service/io-p-itn-apim-01/providers/Microsoft.Authorization/roleAssignments/25d255dc-30ab-4f20-fe95-8723761a4f3f" -> (known after apply)
      ~ name                                   = "25d255dc-30ab-4f20-fe95-8723761a4f3f" -> (known after apply)
      ~ principal_id                           = "23969a45-a6ba-47a4-be43-1207169be299" -> "/servicePrincipals/23969a45-a6ba-47a4-be43-1207169be299" # forces replacement
      ~ principal_type                         = "ServicePrincipal" -> (known after apply)
      ~ role_definition_id                     = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/providers/Microsoft.Authorization/roleDefinitions/71522526-b88f-4d52-b57f-d31fc3546d0d" -> (known after apply)
      + skip_service_principal_aad_check       = (known after apply)
        # (6 unchanged attributes hidden)
    }

  # azurerm_role_assignment.apim_client_role["Contributor"] must be replaced
-/+ resource "azurerm_role_assignment" "apim_client_role" {
      ~ id                                     = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-itn-common-rg-01/providers/Microsoft.ApiManagement/service/io-p-itn-apim-01/providers/Microsoft.Authorization/roleAssignments/bb2b27b7-4388-de4f-7558-17ca26d44677" -> (known after apply)
      ~ name                                   = "bb2b27b7-4388-de4f-7558-17ca26d44677" -> (known after apply)
      ~ principal_id                           = "23969a45-a6ba-47a4-be43-1207169be299" -> "/servicePrincipals/23969a45-a6ba-47a4-be43-1207169be299" # forces replacement
      ~ principal_type                         = "ServicePrincipal" -> (known after apply)
      ~ role_definition_id                     = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c" -> (known after apply)
      + skip_service_principal_aad_check       = (known after apply)
        # (6 unchanged attributes hidden)
    }

-/+ resource "azurerm_role_assignment" "apim_client_role" {
      ~ id                                     = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-itn-common-rg-01/providers/Microsoft.ApiManagement/service/io-p-itn-apim-01/providers/Microsoft.Authorization/roleAssignments/a59f2e3d-0014-3078-3cc4-7c1ab47eb8f4" -> (known after apply)
      ~ name                                   = "a59f2e3d-0014-3078-3cc4-7c1ab47eb8f4" -> (known after apply)
      ~ principal_id                           = "23969a45-a6ba-47a4-be43-1207169be299" -> "/servicePrincipals/23969a45-a6ba-47a4-be43-1207169be299" # forces replacement
      ~ principal_type                         = "ServicePrincipal" -> (known after apply)
      ~ role_definition_id                     = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7" -> (known after apply)
      + skip_service_principal_aad_check       = (known after apply)
        # (6 unchanged attributes hidden)
    }

-/+ resource "azurerm_role_assignment" "dev_portal_role" {
      ~ id                                     = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-itn-common-rg-01/providers/Microsoft.ApiManagement/service/io-p-itn-apim-01/providers/Microsoft.Authorization/roleAssignments/e33c82aa-a3ff-618d-d122-b10e5f97bb6c" -> (known after apply)
      ~ name                                   = "e33c82aa-a3ff-618d-d122-b10e5f97bb6c" -> (known after apply)
      ~ principal_id                           = "57159fcf-4cde-4cd3-b42f-4f778448e125" -> "/servicePrincipals/57159fcf-4cde-4cd3-b42f-4f778448e125" # forces replacement
      ~ principal_type                         = "ServicePrincipal" -> (known after apply)
      ~ role_definition_id                     = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/providers/Microsoft.Authorization/roleDefinitions/71522526-b88f-4d52-b57f-d31fc3546d0d" -> (known after apply)
      + skip_service_principal_aad_check       = (known after apply)
        # (6 unchanged attributes hidden)
    }

  # azurerm_role_assignment.dev_portal_role["Contributor"] must be replaced
-/+ resource "azurerm_role_assignment" "dev_portal_role" {
      ~ id                                     = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-itn-common-rg-01/providers/Microsoft.ApiManagement/service/io-p-itn-apim-01/providers/Microsoft.Authorization/roleAssignments/a7ae30ff-8ad1-9233-bcea-319dfbf9a2fb" -> (known after apply)
      ~ name                                   = "a7ae30ff-8ad1-9233-bcea-319dfbf9a2fb" -> (known after apply)
      ~ principal_id                           = "57159fcf-4cde-4cd3-b42f-4f778448e125" -> "/servicePrincipals/57159fcf-4cde-4cd3-b42f-4f778448e125" # forces replacement
      ~ principal_type                         = "ServicePrincipal" -> (known after apply)
      ~ role_definition_id                     = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c" -> (known after apply)
      + skip_service_principal_aad_check       = (known after apply)
        # (6 unchanged attributes hidden)
    }

-/+ resource "azurerm_role_assignment" "dev_portal_role" {
      ~ id                                     = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-itn-common-rg-01/providers/Microsoft.ApiManagement/service/io-p-itn-apim-01/providers/Microsoft.Authorization/roleAssignments/780e9e7f-541a-4c18-67e1-593d5b66e3fd" -> (known after apply)
      ~ name                                   = "780e9e7f-541a-4c18-67e1-593d5b66e3fd" -> (known after apply)
      ~ principal_id                           = "57159fcf-4cde-4cd3-b42f-4f778448e125" -> "/servicePrincipals/57159fcf-4cde-4cd3-b42f-4f778448e125" # forces replacement
      ~ principal_type                         = "ServicePrincipal" -> (known after apply)
      ~ role_definition_id                     = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7" -> (known after apply)
      + skip_service_principal_aad_check       = (known after apply)
        # (6 unchanged attributes hidden)
    }

  # module.application_gateway_weu.azurerm_web_application_firewall_policy.api_app will be updated in-place
  ~ resource "azurerm_web_application_firewall_policy" "api_app" {
        id                  = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-external/providers/Microsoft.Network/applicationGatewayWebApplicationFirewallPolicies/io-p-waf-appgateway-api-app-policy"
        name                = "io-p-waf-appgateway-api-app-policy"
        tags                = {
            "BusinessUnit"   = "App IO"
            "CostCenter"     = "TS000 - Tecnologia e Servizi"
            "CreatedBy"      = "Terraform"
            "Environment"    = "Prod"
            "ManagementTeam" = "IO Platform"
            "Source"         = "https://github.com/pagopa/io-infra/blob/main/src/common/prod"
        }
        # (4 unchanged attributes hidden)

      ~ policy_settings {
          ~ request_body_inspect_limit_in_kb          = 0 -> 128
            # (6 unchanged attributes hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.monitoring_weu.azurerm_log_analytics_workspace.log will be updated in-place
  ~ resource "azurerm_log_analytics_workspace" "log" {
      ~ allow_resource_only_permissions         = false -> true
        id                                      = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.OperationalInsights/workspaces/io-p-law-common"
        name                                    = "io-p-law-common"
        tags                                    = {
            "BusinessUnit"   = "App IO"
            "CostCenter"     = "TS000 - Tecnologia e Servizi"
            "CreatedBy"      = "Terraform"
            "Environment"    = "Prod"
            "ManagementTeam" = "IO Platform"
            "Source"         = "https://github.com/pagopa/io-infra/blob/main/src/common/prod"
        }
        # (14 unchanged attributes hidden)
    }

  # module.storage_accounts.azurerm_storage_account.exportdata_weu_01 will be updated in-place
  # (imported from "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-operations/providers/Microsoft.Storage/storageAccounts/iopstexportdata")
  ~ resource "azurerm_storage_account" "exportdata_weu_01" {
        access_tier                        = "Hot"
        account_kind                       = "StorageV2"
        account_replication_type           = "GZRS"
        account_tier                       = "Standard"
        allow_nested_items_to_be_public    = false
        allowed_copy_scope                 = null
        cross_tenant_replication_enabled   = false
        default_to_oauth_authentication    = false
        dns_endpoint_type                  = "Standard"
        edge_zone                          = null
        enable_https_traffic_only          = true
        https_traffic_only_enabled         = true
        id                                 = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-operations/providers/Microsoft.Storage/storageAccounts/iopstexportdata"
        infrastructure_encryption_enabled  = false
        is_hns_enabled                     = false
        large_file_share_enabled           = false
        local_user_enabled                 = true
        location                           = "westeurope"
        min_tls_version                    = "TLS1_2"
        name                               = "iopstexportdata"
        nfsv3_enabled                      = false
        primary_access_key                 = (sensitive value)
        primary_blob_connection_string     = (sensitive value)
        primary_blob_endpoint              = "https://iopstexportdata.blob.core.windows.net/"
        primary_blob_host                  = "iopstexportdata.blob.core.windows.net"
        primary_blob_internet_endpoint     = null
        primary_blob_internet_host         = null
        primary_blob_microsoft_endpoint    = null
        primary_blob_microsoft_host        = null
        primary_connection_string          = (sensitive value)
        primary_dfs_endpoint               = "https://iopstexportdata.dfs.core.windows.net/"
        primary_dfs_host                   = "iopstexportdata.dfs.core.windows.net"
        primary_dfs_internet_endpoint      = null
        primary_dfs_internet_host          = null
        primary_dfs_microsoft_endpoint     = null
        primary_dfs_microsoft_host         = null
        primary_file_endpoint              = "https://iopstexportdata.file.core.windows.net/"
        primary_file_host                  = "iopstexportdata.file.core.windows.net"
        primary_file_internet_endpoint     = null
        primary_file_internet_host         = null
        primary_file_microsoft_endpoint    = null
        primary_file_microsoft_host        = null
        primary_location                   = "westeurope"
        primary_queue_endpoint             = "https://iopstexportdata.queue.core.windows.net/"
        primary_queue_host                 = "iopstexportdata.queue.core.windows.net"
        primary_queue_microsoft_endpoint   = null
        primary_queue_microsoft_host       = null
        primary_table_endpoint             = "https://iopstexportdata.table.core.windows.net/"
        primary_table_host                 = "iopstexportdata.table.core.windows.net"
        primary_table_microsoft_endpoint   = null
        primary_table_microsoft_host       = null
        primary_web_endpoint               = "https://iopstexportdata.z6.web.core.windows.net/"
        primary_web_host                   = "iopstexportdata.z6.web.core.windows.net"
        primary_web_internet_endpoint      = null
        primary_web_internet_host          = null
        primary_web_microsoft_endpoint     = null
        primary_web_microsoft_host         = null
        public_network_access_enabled      = true
        queue_encryption_key_type          = "Service"
        resource_group_name                = "io-p-rg-operations"
        secondary_access_key               = (sensitive value)
        secondary_blob_connection_string   = (sensitive value)
        secondary_blob_endpoint            = null
        secondary_blob_host                = null
        secondary_blob_internet_endpoint   = null
        secondary_blob_internet_host       = null
        secondary_blob_microsoft_endpoint  = null
        secondary_blob_microsoft_host      = null
        secondary_connection_string        = (sensitive value)
        secondary_dfs_endpoint             = null
        secondary_dfs_host                 = null
        secondary_dfs_internet_endpoint    = null
        secondary_dfs_internet_host        = null
        secondary_dfs_microsoft_endpoint   = null
        secondary_dfs_microsoft_host       = null
        secondary_file_endpoint            = null
        secondary_file_host                = null
        secondary_file_internet_endpoint   = null
        secondary_file_internet_host       = null
        secondary_file_microsoft_endpoint  = null
        secondary_file_microsoft_host      = null
        secondary_location                 = "northeurope"
        secondary_queue_endpoint           = null
        secondary_queue_host               = null
        secondary_queue_microsoft_endpoint = null
        secondary_queue_microsoft_host     = null
        secondary_table_endpoint           = null
        secondary_table_host               = null
        secondary_table_microsoft_endpoint = null
        secondary_table_microsoft_host     = null
        secondary_web_endpoint             = null
        secondary_web_host                 = null
        secondary_web_internet_endpoint    = null
        secondary_web_internet_host        = null
        secondary_web_microsoft_endpoint   = null
        secondary_web_microsoft_host       = null
        sftp_enabled                       = false
        shared_access_key_enabled          = true
        table_encryption_key_type          = "Service"
      ~ tags                               = {
          + "BusinessUnit"   = "App IO"
          + "CostCenter"     = "TS000 - Tecnologia e Servizi"
          + "CreatedBy"      = "Terraform"
          + "Environment"    = "Prod"
          + "ManagementTeam" = "IO Platform"
          + "Source"         = "https://github.com/pagopa/io-infra/blob/main/src/common/prod"
          - "environment"    = "prod" -> null
        }

        blob_properties {
            change_feed_enabled           = false
            change_feed_retention_in_days = 0
            default_service_version       = null
            last_access_time_enabled      = false
            versioning_enabled            = false
        }

        network_rules {
            bypass                     = [
                "AzureServices",
            ]
            default_action             = "Allow"
            ip_rules                   = [
                "2.39.114.32",
            ]
            virtual_network_subnet_ids = [
                "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Network/virtualNetworks/io-p-vnet-common/subnets/logicapp-common",
            ]
        }

        queue_properties {
            hour_metrics {
                enabled               = true
                include_apis          = true
                retention_policy_days = 7
                version               = "1.0"
            }
            logging {
                delete                = false
                read                  = false
                retention_policy_days = 0
                version               = "1.0"
                write                 = false
            }
            minute_metrics {
                enabled               = false
                include_apis          = false
                retention_policy_days = 0
                version               = "1.0"
            }
        }

        share_properties {
        }
    }

  # module.apim_itn.module.apim_v2.azurerm_api_management.this will be updated in-place
  ~ resource "azurerm_api_management" "this" {
        id                            = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-itn-common-rg-01/providers/Microsoft.ApiManagement/service/io-p-itn-apim-01"
      - min_api_version               = "2021-08-01" -> null
        name                          = "io-p-itn-apim-01"
        tags                          = {
            "BusinessUnit"   = "App IO"
            "CostCenter"     = "TS000 - Tecnologia e Servizi"
            "CreatedBy"      = "Terraform"
            "Environment"    = "Prod"
            "ManagementTeam" = "IO Platform"
            "Source"         = "https://github.com/pagopa/io-infra/blob/main/src/common/prod"
        }
        # (21 unchanged attributes hidden)

        # (9 unchanged blocks hidden)
    }

  # module.app_backend_li_weu.module.appservice_app_backend_slot_staging.azurerm_linux_web_app_slot.this will be updated in-place
  ~ resource "azurerm_linux_web_app_slot" "this" {
      ~ app_settings                                   = {
          ~ "CGN_API_URL"                                     = "https://io-p-itn-cgn-card-func-01.azurewebsites.net" -> "https://io-p-itn-cgn-card-func-02.azurewebsites.net"
          ~ "CGN_OPERATOR_SEARCH_API_URL"                     = "https://io-p-itn-cgn-search-func-01.azurewebsites.net" -> "https://io-p-itn-cgn-search-func-02.azurewebsites.net"
            # (111 unchanged elements hidden)
        }
        id                                             = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-linux/providers/Microsoft.Web/sites/io-p-app-appbackendli/slots/staging"
        name                                           = "staging"
        tags                                           = {
            "BusinessUnit"   = "App IO"
            "CostCenter"     = "TS000 - Tecnologia e Servizi"
            "CreatedBy"      = "Terraform"
            "Environment"    = "Prod"
            "ManagementTeam" = "IO Platform"
            "Source"         = "https://github.com/pagopa/io-infra/blob/main/src/common/prod"
        }
        # (24 unchanged attributes hidden)

        # (2 unchanged blocks hidden)
    }

  # module.app_backend_weu["1"].module.appservice_app_backend_slot_staging.azurerm_linux_web_app_slot.this will be updated in-place
  ~ resource "azurerm_linux_web_app_slot" "this" {
      ~ app_settings                                   = {
          ~ "CGN_API_URL"                                     = "https://io-p-itn-cgn-card-func-01.azurewebsites.net" -> "https://io-p-itn-cgn-card-func-02.azurewebsites.net"
          ~ "CGN_OPERATOR_SEARCH_API_URL"                     = "https://io-p-itn-cgn-search-func-01.azurewebsites.net" -> "https://io-p-itn-cgn-search-func-02.azurewebsites.net"
            # (111 unchanged elements hidden)
        }
        id                                             = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-linux/providers/Microsoft.Web/sites/io-p-app-appbackendl1/slots/staging"
        name                                           = "staging"
        tags                                           = {
            "BusinessUnit"   = "App IO"
            "CostCenter"     = "TS000 - Tecnologia e Servizi"
            "CreatedBy"      = "Terraform"
            "Environment"    = "Prod"
            "ManagementTeam" = "IO Platform"
            "Source"         = "https://github.com/pagopa/io-infra/blob/main/src/common/prod"
        }
        # (24 unchanged attributes hidden)

        # (2 unchanged blocks hidden)
    }

  # module.app_backend_weu["2"].module.appservice_app_backend_slot_staging.azurerm_linux_web_app_slot.this will be updated in-place
  ~ resource "azurerm_linux_web_app_slot" "this" {
      ~ app_settings                                   = {
          ~ "CGN_API_URL"                                     = "https://io-p-itn-cgn-card-func-01.azurewebsites.net" -> "https://io-p-itn-cgn-card-func-02.azurewebsites.net"
          ~ "CGN_OPERATOR_SEARCH_API_URL"                     = "https://io-p-itn-cgn-search-func-01.azurewebsites.net" -> "https://io-p-itn-cgn-search-func-02.azurewebsites.net"
            # (111 unchanged elements hidden)
        }
        id                                             = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-linux/providers/Microsoft.Web/sites/io-p-app-appbackendl2/slots/staging"
        name                                           = "staging"
        tags                                           = {
            "BusinessUnit"   = "App IO"
            "CostCenter"     = "TS000 - Tecnologia e Servizi"
            "CreatedBy"      = "Terraform"
            "Environment"    = "Prod"
            "ManagementTeam" = "IO Platform"
            "Source"         = "https://github.com/pagopa/io-infra/blob/main/src/common/prod"
        }
        # (24 unchanged attributes hidden)

        # (2 unchanged blocks hidden)
    }

  # module.storage_accounts.module.exportdata_weu_01_com_admins.module.storage_account.azurerm_role_assignment.blob["iopstexportdata|*|writer"] will be created
  + resource "azurerm_role_assignment" "blob" {
      + id                               = (known after apply)
      + name                             = (known after apply)
      + principal_id                     = "12a48460-7d95-4d91-ab0a-1d19008aac2c"
      + principal_type                   = (known after apply)
      + role_definition_id               = (known after apply)
      + role_definition_name             = "Storage Blob Data Contributor"
      + scope                            = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-operations/providers/Microsoft.Storage/storageAccounts/iopstexportdata"
      + skip_service_principal_aad_check = (known after apply)
    }

  # module.storage_accounts.module.exportdata_weu_01_com_admins.module.storage_account.azurerm_role_assignment.queue["iopstexportdata|*|owner|Storage Queue Data Contributor"] will be created
  + resource "azurerm_role_assignment" "queue" {
      + id                               = (known after apply)
      + name                             = (known after apply)
      + principal_id                     = "12a48460-7d95-4d91-ab0a-1d19008aac2c"
      + principal_type                   = (known after apply)
      + role_definition_id               = (known after apply)
      + role_definition_name             = "Storage Queue Data Contributor"
      + scope                            = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-operations/providers/Microsoft.Storage/storageAccounts/iopstexportdata"
      + skip_service_principal_aad_check = (known after apply)
    }

  # module.storage_accounts.module.exportdata_weu_01_com_admins.module.storage_account.azurerm_role_assignment.table["iopstexportdata|*|writer"] will be created
  + resource "azurerm_role_assignment" "table" {
      + id                               = (known after apply)
      + name                             = (known after apply)
      + principal_id                     = "12a48460-7d95-4d91-ab0a-1d19008aac2c"
      + principal_type                   = (known after apply)
      + role_definition_id               = (known after apply)
      + role_definition_name             = "Storage Table Data Contributor"
      + scope                            = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-operations/providers/Microsoft.Storage/storageAccounts/iopstexportdata"
      + skip_service_principal_aad_check = (known after apply)
    }

  # module.storage_accounts.module.exportdata_weu_01_com_devs.module.storage_account.azurerm_role_assignment.blob["iopstexportdata|*|writer"] will be created
  + resource "azurerm_role_assignment" "blob" {
      + id                               = (known after apply)
      + name                             = (known after apply)
      + principal_id                     = "7b78851b-c40d-497d-ae7f-596b8f92ecf2"
      + principal_type                   = (known after apply)
      + role_definition_id               = (known after apply)
      + role_definition_name             = "Storage Blob Data Contributor"
      + scope                            = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-operations/providers/Microsoft.Storage/storageAccounts/iopstexportdata"
      + skip_service_principal_aad_check = (known after apply)
    }

  # module.storage_accounts.module.exportdata_weu_01_com_devs.module.storage_account.azurerm_role_assignment.queue["iopstexportdata|*|owner|Storage Queue Data Contributor"] will be created
  + resource "azurerm_role_assignment" "queue" {
      + id                               = (known after apply)
      + name                             = (known after apply)
      + principal_id                     = "7b78851b-c40d-497d-ae7f-596b8f92ecf2"
      + principal_type                   = (known after apply)
      + role_definition_id               = (known after apply)
      + role_definition_name             = "Storage Queue Data Contributor"
      + scope                            = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-operations/providers/Microsoft.Storage/storageAccounts/iopstexportdata"
      + skip_service_principal_aad_check = (known after apply)
    }

  # module.storage_accounts.module.exportdata_weu_01_com_devs.module.storage_account.azurerm_role_assignment.table["iopstexportdata|*|writer"] will be created
  + resource "azurerm_role_assignment" "table" {
      + id                               = (known after apply)
      + name                             = (known after apply)
      + principal_id                     = "7b78851b-c40d-497d-ae7f-596b8f92ecf2"
      + principal_type                   = (known after apply)
      + role_definition_id               = (known after apply)
      + role_definition_name             = "Storage Table Data Contributor"
      + scope                            = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-operations/providers/Microsoft.Storage/storageAccounts/iopstexportdata"
      + skip_service_principal_aad_check = (known after apply)
    }

Plan: 1 to import, 12 to add, 7 to change, 6 to destroy.

Warning: Argument is deprecated

  with module.application_gateway_weu.azurerm_web_application_firewall_policy.api_app,
  on ../_modules/application_gateway/firewall.tf line 60, in resource "azurerm_web_application_firewall_policy" "api_app":
  60:       rule_group_override {

`disabled_rules` will be removed in favour of the `rule` property in version
4.0 of the AzureRM Provider.

(and 53 more similar warnings elsewhere)

─────────────────────────────────────────────────────────────────────────────

Note: You didn't use the -out option to save this plan, so Terraform can't
guarantee to take exactly these actions if you run "terraform apply" now.

@christian-calabrese christian-calabrese added this pull request to the merge queue Feb 10, 2025
Merged via the queue into main with commit afc0039 Feb 10, 2025
8 checks passed
@christian-calabrese christian-calabrese deleted the pe-932 branch February 10, 2025 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants