-
Notifications
You must be signed in to change notification settings - Fork 5
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
[CES-68] Edit selfcare apps APIM reference from weu to itn #1412
Draft
mamu0
wants to merge
4
commits into
main
Choose a base branch
from
CES-68-selfcare-apim-migration-to-itn
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Terraform Plan ('src/domains/selfcare/prod/westeurope') 📖Terraform Planmodule.app_services.data.azurerm_linux_function_app.itn_webapp_functions_app: Still reading... [10s elapsed]
module.app_services.data.azurerm_linux_function_app.itn_webapp_functions_app: Still reading... [20s 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:
# module.app_services.module.appservice_devportal_be.azurerm_linux_web_app.this will be updated in-place
~ resource "azurerm_linux_web_app" "this" {
~ app_settings = {
~ "ARM_APIM" = "io-p-apim-v2-api" -> "io-p-itn-apim-01"
~ "ARM_RESOURCE_GROUP" = "io-p-rg-internal" -> "io-p-itn-common-rg-01"
- "SERVICE_PRINCIPAL_CLIENT_ID" = (sensitive value) -> null
- "SERVICE_PRINCIPAL_SECRET" = (sensitive value) -> null
- "SERVICE_PRINCIPAL_TENANT_ID" = "7788edaf-0346-4068-9d79-c868aed15b3d" -> null
- "USE_SERVICE_PRINCIPAL" = "1" -> null
# (46 unchanged elements hidden)
}
id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-selfcare-be-rg/providers/Microsoft.Web/sites/io-p-app-devportal-be"
name = "io-p-app-devportal-be"
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/selfcare/prod/westeurope"
}
# (24 unchanged attributes hidden)
# (2 unchanged blocks hidden)
}
# module.app_services.module.appservice_selfcare_be.azurerm_linux_web_app.this will be updated in-place
~ resource "azurerm_linux_web_app" "this" {
~ app_settings = {
~ "ARM_APIM" = "io-p-apim-v2-api" -> "io-p-itn-apim-01"
~ "ARM_RESOURCE_GROUP" = "io-p-rg-internal" -> "io-p-itn-common-rg-01"
- "ARM_TENANT_ID" = "7788edaf-0346-4068-9d79-c868aed15b3d" -> null
- "SERVICE_PRINCIPAL_CLIENT_ID" = (sensitive value) -> null
- "SERVICE_PRINCIPAL_SECRET" = (sensitive value) -> null
- "SERVICE_PRINCIPAL_TENANT_ID" = "7788edaf-0346-4068-9d79-c868aed15b3d" -> null
- "USE_SERVICE_PRINCIPAL" = "1" -> null
# (45 unchanged elements hidden)
}
id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-selfcare-be-rg/providers/Microsoft.Web/sites/io-p-app-selfcare-be"
name = "io-p-app-selfcare-be"
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/selfcare/prod/westeurope"
}
# (24 unchanged attributes hidden)
# (2 unchanged blocks hidden)
}
# module.app_services.module.function_devportalservicedata.azurerm_linux_function_app.this will be updated in-place
~ resource "azurerm_linux_function_app" "this" {
~ app_settings = {
- "APIM_CLIENT_ID" = (sensitive value) -> null
~ "APIM_RESOURCE_GROUP" = "io-p-rg-internal" -> "io-p-itn-common-rg-01"
- "APIM_SECRET" = (sensitive value) -> null
~ "APIM_SERVICE_NAME" = "io-p-apim-v2-api" -> "io-p-itn-apim-01"
# (40 unchanged elements hidden)
}
id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-selfcare-be-rg/providers/Microsoft.Web/sites/io-p-devportalsrvdata-fn"
name = "io-p-devportalsrvdata-fn"
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/selfcare/prod/westeurope"
}
# (31 unchanged attributes hidden)
# (3 unchanged blocks hidden)
}
# module.app_services.module.function_devportalservicedata_staging_slot.azurerm_linux_function_app_slot.this will be updated in-place
~ resource "azurerm_linux_function_app_slot" "this" {
~ app_settings = (sensitive value)
id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-selfcare-be-rg/providers/Microsoft.Web/sites/io-p-devportalsrvdata-fn/slots/staging"
name = "staging"
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/selfcare/prod/westeurope"
}
# (29 unchanged attributes hidden)
# (2 unchanged blocks hidden)
}
# module.app_services.module.function_subscriptionmigrations.azurerm_linux_function_app.this will be updated in-place
~ resource "azurerm_linux_function_app" "this" {
~ app_settings = {
- "APIM_CLIENT_ID" = (sensitive value) -> null
~ "APIM_RESOURCE_GROUP" = "io-p-rg-internal" -> "io-p-itn-common-rg-01"
- "APIM_SECRET" = (sensitive value) -> null
~ "APIM_SERVICE_NAME" = "io-p-apim-v2-api" -> "io-p-itn-apim-01"
- "APIM_TENANT_ID" = "7788edaf-0346-4068-9d79-c868aed15b3d" -> null
# (38 unchanged elements hidden)
}
id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-selfcare-be-rg/providers/Microsoft.Web/sites/io-p-subsmigrations-fn"
name = "io-p-subsmigrations-fn"
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/selfcare/prod/westeurope"
}
# (31 unchanged attributes hidden)
# (3 unchanged blocks hidden)
}
# module.app_services.module.function_subscriptionmigrations_staging_slot.azurerm_linux_function_app_slot.this will be updated in-place
~ resource "azurerm_linux_function_app_slot" "this" {
~ app_settings = (sensitive value)
id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-selfcare-be-rg/providers/Microsoft.Web/sites/io-p-subsmigrations-fn/slots/staging"
name = "staging"
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/selfcare/prod/westeurope"
}
# (29 unchanged attributes hidden)
# (2 unchanged blocks hidden)
}
# module.app_services.module.selfcare_jwt.azurerm_key_vault_secret.jwt_cert will be updated in-place
~ resource "azurerm_key_vault_secret" "jwt_cert" {
id = "https://io-p-kv-common.vault.azure.net/secrets/selfcare-jwt-cert/4c7cc906c39f4de7900b5f3756a633d4"
name = "selfcare-jwt-cert"
tags = {}
~ value = (sensitive value)
# (6 unchanged attributes hidden)
}
# module.app_services.module.selfcare_jwt.tls_self_signed_cert.jwt_self must be replaced
-/+ resource "tls_self_signed_cert" "jwt_self" {
~ cert_pem = <<-EOT
-----BEGIN CERTIFICATE-----
MIIDWzCCAkOgAwIBAgIRAMR7Rjfee0k53F5R9xpyew4wDQYJKoZIhvcNAQELBQAw
WDEJMAcGA1UEBhMAMQkwBwYDVQQIEwAxCTAHBgNVBAcTADEJMA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apply)
~ id = "261168763882519204645171764604781624078" -> (known after apply)
~ key_algorithm = "RSA" -> (known after apply)
~ ready_for_renewal = true -> false # forces replacement
~ validity_end_time = "2024-11-17T17:09:22.924416878Z" -> (known after apply)
~ validity_start_time = "2023-11-23T17:09:22.924416878Z" -> (known after apply)
# (7 unchanged attributes hidden)
# (1 unchanged block hidden)
}
# module.postgresql.module.subscriptionmigrations_db_server.azurerm_management_lock.this[0] will be created
+ resource "azurerm_management_lock" "this" {
+ id = (known after apply)
+ lock_level = "CanNotDelete"
+ name = "io-p-subsmigrations-db-postgresql-lock"
+ notes = "This items can't be deleted in this subscription!"
+ scope = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-selfcare-be-rg/providers/Microsoft.DBforPostgreSQL/servers/io-p-subsmigrations-db-postgresql"
}
Plan: 2 to add, 7 to change, 1 to destroy.
─────────────────────────────────────────────────────────────────────────────
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.
|
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation and Context
For the migration of the APIM in italynorth, app-selfcare-be, app-devportal-be, function_devportalservicedata and function_subscriptionmigrations resources will point to the new APIM, it will be applied after making the backup and restore on the new APIM in ITN.
Major Changes
Dependencies
Testing
Documentation
Other Considerations