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

Update network configuration for backend 3 #1065

Merged
merged 2 commits into from
Jul 10, 2024
Merged

Update network configuration for backend 3 #1065

merged 2 commits into from
Jul 10, 2024

Conversation

Krusty93
Copy link
Contributor

List of changes

Motivation and context

Type of changes

  • Add new resources
  • Update configuration to existing resources
  • Remove existing resources

Env to apply

  • DEV
  • UAT
  • PROD

Does this introduce a change to production resources with possible user impact?

  • Yes, users may be impacted applying this change
  • No

Does this introduce an unwanted change on infrastructure? Check terraform plan execution result

  • Yes
  • No

Other information


If PR is partially applied, why? (reserved to mantainers)

How to apply

After PR is approved

  1. run deploy pipeline from Azure DevOps io-platform-iac-projects
  2. select PR branch
  3. wait for approval

Copy link

github-actions bot commented Jul 10, 2024

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

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

Terraform will perform the following actions:

  # module.functions.module.function_cgn.azurerm_linux_function_app.this will be updated in-place
  ~ resource "azurerm_linux_function_app" "this" {
      ~ app_settings                                   = {
          - "APPINSIGHTS_SAMPLING_PERCENTAGE"                 = "5"
          - "AzureWebJobs.ContinueEycaActivation.Disabled"    = "0"
          - "AzureWebJobs.UpdateExpiredCgn.Disabled"          = "0"
          - "AzureWebJobs.UpdateExpiredEyca.Disabled"         = "0"
          - "CGN_CARDS_DATA_BACKUP_CONTAINER_NAME"            = "cgn-legalbackup-blob"
          - "CGN_CARDS_DATA_BACKUP_FOLDER_NAME"               = "cgn"
          - "CGN_DATA_BACKUP_CONNECTION"                      = (sensitive value)
          - "CGN_EXPIRATION_TABLE_NAME"                       = "cardexpiration"
          - "CGN_SERVICE_ID"                                  = (sensitive value)
          - "CGN_STORAGE_CONNECTION_STRING"                   = (sensitive value)
          - "CGN_UPPER_BOUND_AGE"                             = "36"
          - "COSMOSDB_CGN_DATABASE_NAME"                      = "db"
          - "COSMOSDB_CGN_KEY"                                = (sensitive value)
          - "COSMOSDB_CGN_URI"                                = (sensitive value)
          - "COSMOSDB_CONNECTION_STRING"                      = (sensitive value)
          - "DURABLE_FUNCTION_STORAGE_CONNECTION_STRING"      = (sensitive value)
          - "EYCA_API_BASE_URL"                               = "https://ccdb.eyca.org/api"
          - "EYCA_API_PASSWORD"                               = (sensitive value)
          - "EYCA_API_USERNAME"                               = (sensitive value)
          - "EYCA_EXPIRATION_TABLE_NAME"                      = "eycacardexpiration"
          - "EYCA_UPPER_BOUND_AGE"                            = "31"
          - "FETCH_KEEPALIVE_ENABLED"                         = "true"
          - "FETCH_KEEPALIVE_FREE_SOCKET_TIMEOUT"             = "30000"
          - "FETCH_KEEPALIVE_MAX_FREE_SOCKETS"                = "10"
          - "FETCH_KEEPALIVE_MAX_SOCKETS"                     = "40"
          - "FETCH_KEEPALIVE_SOCKET_ACTIVE_TTL"               = "110000"
          - "FETCH_KEEPALIVE_TIMEOUT"                         = "60000"
          - "FUNCTIONS_WORKER_PROCESS_COUNT"                  = "4"
          - "FUNCTIONS_WORKER_RUNTIME"                        = "node"
          - "INTERNAL_STORAGE_CONNECTION_STRING"              = (sensitive value)
          - "NODE_ENV"                                        = "production"
          - "OTP_TTL_IN_SECONDS"                              = "600"
          - "REDIS_PASSWORD"                                  = (sensitive value)
          - "REDIS_PORT"                                      = (sensitive value)
          - "REDIS_URL"                                       = (sensitive value)
          - "SERVICES_API_KEY"                                = (sensitive value)
          - "SERVICES_API_URL"                                = "http://api-app.internal.io.pagopa.it/"
          - "SLOT_TASK_HUBNAME"                               = "ProductionTaskHub"
          - "WEBSITE_ADD_SITENAME_BINDINGS_IN_APPHOST_CONFIG" = "1"
          - "WEBSITE_DNS_SERVER"                              = "168.63.129.16"
          - "WEBSITE_RUN_FROM_PACKAGE"                        = "1"
          - "WEBSITE_TIME_ZONE"                               = "Central Europe Standard Time"
        } -> (known after apply)
        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"
        tags                                           = {
            "CostCenter"     = "TS310 - PAGAMENTI & SERVIZI"
            "CreatedBy"      = "Terraform"
            "Environment"    = "Prod"
            "ManagementTeam" = "IO Comunicazione"
            "Owner"          = "IO"
            "Source"         = "https://github.com/pagopa/io-infra/blob/main/src/domains/cgn/prod/westeurope"
        }
        # (27 unchanged attributes hidden)

      ~ site_config {
            # (25 unchanged attributes hidden)

          ~ ip_restriction {
                name                      = "rule"
              ~ virtual_network_subnet_id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Network/virtualNetworks/io-p-vnet-common/subnets/appbackendli" -> "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Network/virtualNetworks/io-p-vnet-common/subnets/io-p-weu-backend-snet-03"
                # (3 unchanged attributes hidden)
            }
          ~ ip_restriction {
                name                      = "rule"
              ~ virtual_network_subnet_id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Network/virtualNetworks/io-p-vnet-common/subnets/apimv2api" -> "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Network/virtualNetworks/io-p-vnet-common/subnets/appbackendli"
                # (3 unchanged attributes hidden)
            }
          ~ ip_restriction {
                name                      = "rule"
              ~ virtual_network_subnet_id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Network/virtualNetworks/io-p-vnet-common/subnets/io-p-weu-backend-snet-03" -> "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Network/virtualNetworks/io-p-vnet-common/subnets/apimv2api"
                # (3 unchanged attributes hidden)
            }

            # (4 unchanged blocks hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.functions.module.function_cgn_merchant.azurerm_linux_function_app.this will be updated in-place
  ~ resource "azurerm_linux_function_app" "this" {
      ~ app_settings                                   = {
          - "APPINSIGHTS_SAMPLING_PERCENTAGE"                 = "5"
          - "CGN_STORAGE_CONNECTION_STRING"                   = (sensitive value)
          - "COSMOSDB_CGN_DATABASE_NAME"                      = "db"
          - "COSMOSDB_CGN_KEY"                                = (sensitive value)
          - "COSMOSDB_CGN_URI"                                = (sensitive value)
          - "COSMOSDB_CONNECTION_STRING"                      = (sensitive value)
          - "FETCH_KEEPALIVE_ENABLED"                         = "true"
          - "FETCH_KEEPALIVE_FREE_SOCKET_TIMEOUT"             = "30000"
          - "FETCH_KEEPALIVE_MAX_FREE_SOCKETS"                = "10"
          - "FETCH_KEEPALIVE_MAX_SOCKETS"                     = "40"
          - "FETCH_KEEPALIVE_SOCKET_ACTIVE_TTL"               = "110000"
          - "FETCH_KEEPALIVE_TIMEOUT"                         = "60000"
          - "FUNCTIONS_WORKER_PROCESS_COUNT"                  = "4"
          - "FUNCTIONS_WORKER_RUNTIME"                        = "node"
          - "NODE_ENV"                                        = "production"
          - "REDIS_PASSWORD"                                  = (sensitive value)
          - "REDIS_PORT"                                      = (sensitive value)
          - "REDIS_URL"                                       = (sensitive value)
          - "SLOT_TASK_HUBNAME"                               = "ProductionTaskHub"
          - "WEBSITE_ADD_SITENAME_BINDINGS_IN_APPHOST_CONFIG" = "1"
          - "WEBSITE_DNS_SERVER"                              = "168.63.129.16"
          - "WEBSITE_RUN_FROM_PACKAGE"                        = "1"
        } -> (known after apply)
        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"
        tags                                           = {
            "CostCenter"     = "TS310 - PAGAMENTI & SERVIZI"
            "CreatedBy"      = "Terraform"
            "Environment"    = "Prod"
            "ManagementTeam" = "IO Comunicazione"
            "Owner"          = "IO"
            "Source"         = "https://github.com/pagopa/io-infra/blob/main/src/domains/cgn/prod/westeurope"
        }
        # (27 unchanged attributes hidden)

        # (2 unchanged blocks hidden)
    }

  # module.functions.module.function_cgn_merchant_staging_slot.azurerm_linux_function_app_slot.this will be updated in-place
  ~ resource "azurerm_linux_function_app_slot" "this" {
      ~ app_settings                                   = {
          - "APPINSIGHTS_SAMPLING_PERCENTAGE"                 = "5"
          - "CGN_STORAGE_CONNECTION_STRING"                   = (sensitive value)
          - "COSMOSDB_CGN_DATABASE_NAME"                      = "db"
          - "COSMOSDB_CGN_KEY"                                = (sensitive value)
          - "COSMOSDB_CGN_URI"                                = (sensitive value)
          - "COSMOSDB_CONNECTION_STRING"                      = (sensitive value)
          - "FETCH_KEEPALIVE_ENABLED"                         = "true"
          - "FETCH_KEEPALIVE_FREE_SOCKET_TIMEOUT"             = "30000"
          - "FETCH_KEEPALIVE_MAX_FREE_SOCKETS"                = "10"
          - "FETCH_KEEPALIVE_MAX_SOCKETS"                     = "40"
          - "FETCH_KEEPALIVE_SOCKET_ACTIVE_TTL"               = "110000"
          - "FETCH_KEEPALIVE_TIMEOUT"                         = "60000"
          - "FUNCTIONS_WORKER_PROCESS_COUNT"                  = "4"
          - "FUNCTIONS_WORKER_RUNTIME"                        = "node"
          - "NODE_ENV"                                        = "production"
          - "REDIS_PASSWORD"                                  = (sensitive value)
          - "REDIS_PORT"                                      = (sensitive value)
          - "REDIS_URL"                                       = (sensitive value)
          - "SLOT_TASK_HUBNAME"                               = "StagingTaskHub"
          - "WEBSITE_ADD_SITENAME_BINDINGS_IN_APPHOST_CONFIG" = "1"
          - "WEBSITE_DNS_SERVER"                              = "168.63.129.16"
          - "WEBSITE_RUN_FROM_PACKAGE"                        = "1"
        } -> (known after apply)
        id                                             = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Web/sites/io-p-cgn-merchant-fn/slots/staging"
        name                                           = "staging"
        tags                                           = {
            "CostCenter"     = "TS310 - PAGAMENTI & SERVIZI"
            "CreatedBy"      = "Terraform"
            "Environment"    = "Prod"
            "ManagementTeam" = "IO Comunicazione"
            "Owner"          = "IO"
            "Source"         = "https://github.com/pagopa/io-infra/blob/main/src/domains/cgn/prod/westeurope"
        }
        # (23 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

  # module.functions.module.function_cgn_staging_slot.azurerm_linux_function_app_slot.this will be updated in-place
  ~ resource "azurerm_linux_function_app_slot" "this" {
      ~ app_settings                                   = {
          - "APPINSIGHTS_SAMPLING_PERCENTAGE"                 = "5"
          - "AzureWebJobs.ContinueEycaActivation.Disabled"    = "1"
          - "AzureWebJobs.UpdateExpiredCgn.Disabled"          = "1"
          - "AzureWebJobs.UpdateExpiredEyca.Disabled"         = "1"
          - "CGN_CARDS_DATA_BACKUP_CONTAINER_NAME"            = "cgn-legalbackup-blob"
          - "CGN_CARDS_DATA_BACKUP_FOLDER_NAME"               = "cgn"
          - "CGN_DATA_BACKUP_CONNECTION"                      = (sensitive value)
          - "CGN_EXPIRATION_TABLE_NAME"                       = "cardexpiration"
          - "CGN_SERVICE_ID"                                  = (sensitive value)
          - "CGN_STORAGE_CONNECTION_STRING"                   = (sensitive value)
          - "CGN_UPPER_BOUND_AGE"                             = "36"
          - "COSMOSDB_CGN_DATABASE_NAME"                      = "db"
          - "COSMOSDB_CGN_KEY"                                = (sensitive value)
          - "COSMOSDB_CGN_URI"                                = (sensitive value)
          - "COSMOSDB_CONNECTION_STRING"                      = (sensitive value)
          - "DURABLE_FUNCTION_STORAGE_CONNECTION_STRING"      = (sensitive value)
          - "EYCA_API_BASE_URL"                               = "https://ccdb.eyca.org/api"
          - "EYCA_API_PASSWORD"                               = (sensitive value)
          - "EYCA_API_USERNAME"                               = (sensitive value)
          - "EYCA_EXPIRATION_TABLE_NAME"                      = "eycacardexpiration"
          - "EYCA_UPPER_BOUND_AGE"                            = "31"
          - "FETCH_KEEPALIVE_ENABLED"                         = "true"
          - "FETCH_KEEPALIVE_FREE_SOCKET_TIMEOUT"             = "30000"
          - "FETCH_KEEPALIVE_MAX_FREE_SOCKETS"                = "10"
          - "FETCH_KEEPALIVE_MAX_SOCKETS"                     = "40"
          - "FETCH_KEEPALIVE_SOCKET_ACTIVE_TTL"               = "110000"
          - "FETCH_KEEPALIVE_TIMEOUT"                         = "60000"
          - "FUNCTIONS_WORKER_PROCESS_COUNT"                  = "4"
          - "FUNCTIONS_WORKER_RUNTIME"                        = "node"
          - "INTERNAL_STORAGE_CONNECTION_STRING"              = (sensitive value)
          - "NODE_ENV"                                        = "production"
          - "OTP_TTL_IN_SECONDS"                              = "600"
          - "REDIS_PASSWORD"                                  = (sensitive value)
          - "REDIS_PORT"                                      = (sensitive value)
          - "REDIS_URL"                                       = (sensitive value)
          - "SERVICES_API_KEY"                                = (sensitive value)
          - "SERVICES_API_URL"                                = "http://api-app.internal.io.pagopa.it/"
          - "SLOT_TASK_HUBNAME"                               = "StagingTaskHub"
          - "WEBSITE_ADD_SITENAME_BINDINGS_IN_APPHOST_CONFIG" = "1"
          - "WEBSITE_DNS_SERVER"                              = "168.63.129.16"
          - "WEBSITE_RUN_FROM_PACKAGE"                        = "1"
          - "WEBSITE_TIME_ZONE"                               = "Central Europe Standard Time"
        } -> (known after apply)
        id                                             = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-cgn-be-rg/providers/Microsoft.Web/sites/io-p-cgn-fn/slots/staging"
        name                                           = "staging"
        tags                                           = {
            "CostCenter"     = "TS310 - PAGAMENTI & SERVIZI"
            "CreatedBy"      = "Terraform"
            "Environment"    = "Prod"
            "ManagementTeam" = "IO Comunicazione"
            "Owner"          = "IO"
            "Source"         = "https://github.com/pagopa/io-infra/blob/main/src/domains/cgn/prod/westeurope"
        }
        # (23 unchanged attributes hidden)

      ~ site_config {
            # (25 unchanged attributes hidden)

          ~ ip_restriction {
                name                      = "rule"
              ~ virtual_network_subnet_id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Network/virtualNetworks/io-p-vnet-common/subnets/appbackendli" -> "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Network/virtualNetworks/io-p-vnet-common/subnets/io-p-weu-backend-snet-03"
                # (3 unchanged attributes hidden)
            }
          ~ ip_restriction {
                name                      = "rule"
              ~ virtual_network_subnet_id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Network/virtualNetworks/io-p-vnet-common/subnets/apimv2api" -> "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Network/virtualNetworks/io-p-vnet-common/subnets/appbackendli"
                # (3 unchanged attributes hidden)
            }
          ~ ip_restriction {
                name                      = "rule"
              ~ priority                  = 65500 -> 65000
              ~ virtual_network_subnet_id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Network/virtualNetworks/io-p-vnet-common/subnets/io-p-weu-backend-snet-03" -> "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Network/virtualNetworks/io-p-vnet-common/subnets/apimv2api"
                # (2 unchanged attributes hidden)
            }

            # (5 unchanged blocks hidden)
        }
    }

  # module.storage_accounts.module.storage_account_cgn.azurerm_advanced_threat_protection.this must be replaced
-/+ resource "azurerm_advanced_threat_protection" "this" {
      ~ id                 = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-cgn/providers/Microsoft.Storage/storageAccounts/iopstcgn/providers/Microsoft.Security/advancedThreatProtectionSettings/current" -> (known after apply)
      ~ target_resource_id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-cgn/providers/Microsoft.Storage/storageAccounts/iopstcgn" # forces replacement -> (known after apply) # forces replacement
        # (1 unchanged attribute hidden)
    }

  # module.storage_accounts.module.storage_account_cgn.azurerm_monitor_metric_alert.storage_account_low_availability[0] will be updated in-place
  ~ resource "azurerm_monitor_metric_alert" "storage_account_low_availability" {
        id                  = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-cgn/providers/Microsoft.Insights/metricAlerts/[iopstcgn] Low Availability"
        name                = "[iopstcgn] Low Availability"
      ~ scopes              = [
          - "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-cgn/providers/Microsoft.Storage/storageAccounts/iopstcgn",
        ] -> (known after apply)
        tags                = {
            "CostCenter"     = "TS310 - PAGAMENTI & SERVIZI"
            "CreatedBy"      = "Terraform"
            "Environment"    = "Prod"
            "ManagementTeam" = "IO Comunicazione"
            "Owner"          = "IO"
            "Source"         = "https://github.com/pagopa/io-infra/blob/main/src/domains/cgn/prod/westeurope"
        }
        # (7 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

  # module.storage_accounts.module.storage_account_cgn.azurerm_storage_account.this must be replaced
-/+ resource "azurerm_storage_account" "this" {
      ~ account_replication_type           = "GZRS" -> "GRS" # forces replacement
      ~ id                                 = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-cgn/providers/Microsoft.Storage/storageAccounts/iopstcgn" -> (known after apply)
      + large_file_share_enabled           = (known after apply)
        name                               = "iopstcgn"
      ~ primary_access_key                 = (sensitive value)
      ~ primary_blob_connection_string     = (sensitive value)
      ~ primary_blob_endpoint              = "https://iopstcgn.blob.core.windows.net/" -> (known after apply)
      ~ primary_blob_host                  = "iopstcgn.blob.core.windows.net" -> (known after apply)
      + primary_blob_internet_endpoint     = (known after apply)
      + primary_blob_internet_host         = (known after apply)
      + primary_blob_microsoft_endpoint    = (known after apply)
      + primary_blob_microsoft_host        = (known after apply)
      ~ primary_connection_string          = (sensitive value)
      ~ primary_dfs_endpoint               = "https://iopstcgn.dfs.core.windows.net/" -> (known after apply)
      ~ primary_dfs_host                   = "iopstcgn.dfs.core.windows.net" -> (known after apply)
      + primary_dfs_internet_endpoint      = (known after apply)
      + primary_dfs_internet_host          = (known after apply)
      + primary_dfs_microsoft_endpoint     = (known after apply)
      + primary_dfs_microsoft_host         = (known after apply)
      ~ primary_file_endpoint              = "https://iopstcgn.file.core.windows.net/" -> (known after apply)
      ~ primary_file_host                  = "iopstcgn.file.core.windows.net" -> (known after apply)
      + primary_file_internet_endpoint     = (known after apply)
      + primary_file_internet_host         = (known after apply)
      + primary_file_microsoft_endpoint    = (known after apply)
      + primary_file_microsoft_host        = (known after apply)
      ~ primary_location                   = "westeurope" -> (known after apply)
      ~ primary_queue_endpoint             = "https://iopstcgn.queue.core.windows.net/" -> (known after apply)
      ~ primary_queue_host                 = "iopstcgn.queue.core.windows.net" -> (known after apply)
      + primary_queue_microsoft_endpoint   = (known after apply)
      + primary_queue_microsoft_host       = (known after apply)
      ~ primary_table_endpoint             = "https://iopstcgn.table.core.windows.net/" -> (known after apply)
      ~ primary_table_host                 = "iopstcgn.table.core.windows.net" -> (known after apply)
      + primary_table_microsoft_endpoint   = (known after apply)
      + primary_table_microsoft_host       = (known after apply)
      ~ primary_web_endpoint               = "https://iopstcgn.z6.web.core.windows.net/" -> (known after apply)
      ~ primary_web_host                   = "iopstcgn.z6.web.core.windows.net" -> (known after apply)
      + primary_web_internet_endpoint      = (known after apply)
      + primary_web_internet_host          = (known after apply)
      + primary_web_microsoft_endpoint     = (known after apply)
      + primary_web_microsoft_host         = (known after apply)
      ~ secondary_access_key               = (sensitive value)
      + secondary_blob_connection_string   = (sensitive value)
      + secondary_blob_endpoint            = (known after apply)
      + secondary_blob_host                = (known after apply)
      + secondary_blob_internet_endpoint   = (known after apply)
      + secondary_blob_internet_host       = (known after apply)
      + secondary_blob_microsoft_endpoint  = (known after apply)
      + secondary_blob_microsoft_host      = (known after apply)
      ~ secondary_connection_string        = (sensitive value)
      + secondary_dfs_endpoint             = (known after apply)
      + secondary_dfs_host                 = (known after apply)
      + secondary_dfs_internet_endpoint    = (known after apply)
      + secondary_dfs_internet_host        = (known after apply)
      + secondary_dfs_microsoft_endpoint   = (known after apply)
      + secondary_dfs_microsoft_host       = (known after apply)
      + secondary_file_endpoint            = (known after apply)
      + secondary_file_host                = (known after apply)
      + secondary_file_internet_endpoint   = (known after apply)
      + secondary_file_internet_host       = (known after apply)
      + secondary_file_microsoft_endpoint  = (known after apply)
      + secondary_file_microsoft_host      = (known after apply)
      ~ secondary_location                 = "northeurope" -> (known after apply)
      + secondary_queue_endpoint           = (known after apply)
      + secondary_queue_host               = (known after apply)
      + secondary_queue_microsoft_endpoint = (known after apply)
      + secondary_queue_microsoft_host     = (known after apply)
      + secondary_table_endpoint           = (known after apply)
      + secondary_table_host               = (known after apply)
      + secondary_table_microsoft_endpoint = (known after apply)
      + secondary_table_microsoft_host     = (known after apply)
      + secondary_web_endpoint             = (known after apply)
      + secondary_web_host                 = (known after apply)
      + secondary_web_internet_endpoint    = (known after apply)
      + secondary_web_internet_host        = (known after apply)
      + secondary_web_microsoft_endpoint   = (known after apply)
      + secondary_web_microsoft_host       = (known after apply)
        tags                               = {
            "CostCenter"     = "TS310 - PAGAMENTI & SERVIZI"
            "CreatedBy"      = "Terraform"
            "Environment"    = "Prod"
            "ManagementTeam" = "IO Comunicazione"
            "Owner"          = "IO"
            "Source"         = "https://github.com/pagopa/io-infra/blob/main/src/domains/cgn/prod/westeurope"
        }
        # (19 unchanged attributes hidden)

      ~ blob_properties {
          - change_feed_retention_in_days = 0 -> null
          + default_service_version       = (known after apply)
            # (3 unchanged attributes hidden)
        }

      - network_rules {
          - bypass                     = [
              - "AzureServices",
            ] -> null
          - default_action             = "Allow" -> null
          - ip_rules                   = [] -> null
          - virtual_network_subnet_ids = [] -> null
        }

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

      - share_properties {
        }
    }

Plan: 2 to add, 5 to change, 2 to destroy.

Changes to Outputs:
  ~ storage_account_cgn          = {
      ~ id   = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-cgn/providers/Microsoft.Storage/storageAccounts/iopstcgn" -> (known after apply)
        name = "iopstcgn"
    }

Warning: Deprecated Resource

  with module.functions.azurerm_app_service_plan.app_service_plan_cgn_common,
  on ../../_modules/functions_apps/app_service_plan_cgn_common.tf line 1, in resource "azurerm_app_service_plan" "app_service_plan_cgn_common":
   1: resource "azurerm_app_service_plan" "app_service_plan_cgn_common" {

The `azurerm_app_service_plan` resource has been superseded by the
`azurerm_service_plan` resource. Whilst this resource will continue to be
available in the 2.x and 3.x releases it is feature-frozen for compatibility
purposes, will no longer receive any updates and will be removed in a future
major release of the Azure Provider.

(and one more similar warning 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.

Copy link

sonarcloud bot commented Jul 10, 2024

@Krusty93 Krusty93 merged commit 18def1e into main Jul 10, 2024
10 checks passed
@Krusty93 Krusty93 deleted the deps-backend3 branch July 10, 2024 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant