Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

chore: Workload profiles migration DEV #459

Merged
merged 6 commits into from
Mar 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 53 additions & 39 deletions infra/container_apps/env/dev-pnpg/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,27 @@ tags = {
}

container_app = {
min_replicas = 1
min_replicas = 0
max_replicas = 1
scale_rules = []
cpu = 0.5
memory = "1Gi"
scale_rules = [
{
custom = {
metadata = {
"desiredReplicas" = "1"
"start" = "0 8 * * MON-FRI"
"end" = "0 19 * * MON-FRI"
"timezone" = "Europe/Rome"
}
type = "cron"
}
name = "cron-scale-rule"
}
]
cpu = 0.5
memory = "1Gi"
}

workload_profile_name = null

app_settings = [
{
Expand All @@ -27,19 +41,19 @@ app_settings = [
{
name = "MAIL_TEMPLATE_COMPLETE_PATH"
value = "contracts/template/mail/onboarding-complete/1.0.0.json"
},
},
{
name = "MAIL_TEMPLATE_PT_COMPLETE_PATH"
value = "contracts/template/mail/registration-complete-pt/1.0.0.json"
},
},
{
name = "MAIL_TEMPLATE_FD_COMPLETE_NOTIFICATION_PATH"
value = "contracts/template/mail/onboarding-complete-fd/1.0.0.json"
},
{
name = "SELFCARE_URL"
value = "https://selfcare.pagopa.it"
},
},
{
name = "MAIL_TEMPLATE_AUTOCOMPLETE_PATH"
value = "contracts/template/mail/import-massivo-io/1.0.0.json"
Expand All @@ -54,18 +68,18 @@ app_settings = [
},
{
name = "MAIL_TEMPLATE_PATH"
value = "resources/templates/email/onboarding_1.0.0.json" //pnpg
},
value = "resources/templates/email/onboarding_1.0.0.json" //pnpg
},
{
name = "MAIL_ONBOARDING_CONFIRMATION_LINK"
value = "https://dev.selfcare.pagopa.it/onboarding/confirm?jwt="
},

{
name = "MAIL_ONBOARDING_REJECTION_LINK"
value = "https://dev.selfcare.pagopa.it/onboarding/cancel?jwt="
},

{
name = "SELFCARE_ADMIN_NOTIFICATION_URL"
value = "https://dev.selfcare.pagopa.it/dashboard/admin/onboarding/"
Expand All @@ -74,56 +88,56 @@ app_settings = [
name = "MAIL_TEMPLATE_NOTIFICATION_PATH"
value = "contracts/template/mail/onboarding-notification/1.0.0.json"
},

{
name = "MAIL_TEMPLATE_REGISTRATION_REQUEST_PT_PATH"
value = "contracts/template/mail/registration-request-pt/1.0.0.json"
},

{
name = "MAIL_TEMPLATE_REGISTRATION_NOTIFICATION_ADMIN_PATH"
value = "contracts/template/mail/registration-notification-admin/1.0.0.json"
},
{
name = "MAIL_TEMPLATE_REJECT_PATH"
value = "contracts/template/mail/onboarding-refused/1.0.0.json"
},
},
{
name = "MAIL_ONBOARDING_URL"
name = "MAIL_ONBOARDING_URL"
value = "https://dev.selfcare.pagopa.it/onboarding/"
},
{
name = "STORAGE_CONTAINER"
value = "$web"
},
},
{
name = "STORAGE_ENDPOINT"
value = "core.windows.net"
},

{
name = "STORAGE_APPLICATION_ID"
value = "selcdweupnpgcheckoutsa"
},

{
name = "STORAGE_CREDENTIAL_ID"
value = "selcdweupnpgcheckoutsa"
},
},
{
name = "STORAGE_TEMPLATE_URL"
value = "https://selcdweupnpgcheckoutsa.z6.web.core.windows.net"
},
{
name = "KAFKA_BROKER"
value = "selc-d-eventhub-ns.servicebus.windows.net:9093"
},
},
{
name = "KAFKA_CONTRACTS_TOPIC"
name = "KAFKA_CONTRACTS_TOPIC"
value = "SC-Contracts"
},
{
name = "KAFKA_USER_TOPIC"
name = "KAFKA_USER_TOPIC"
value = "SC-Users"
},
{
Expand All @@ -140,18 +154,18 @@ app_settings = [
},
{
name = "EXTERNAL_API_LOG_LEVEL"
value = "DEBUG"
value = "DEBUG"
},
{
name = "SMTP_HOST"
value = "smtps.pec.aruba.it"
},
},
{
name = "SMTP_PORT"
value = "465"
},
{
name = "SMTP_SSL"
name = "SMTP_SSL"
value = "true"
},
{
Expand All @@ -163,8 +177,8 @@ app_settings = [
value = "https://selc-d-pnpg-party-reg-proxy-ca.whiteglacier-211c4885.westeurope.azurecontainerapps.io"
},
{
name = "MS_PRODUCT_URL"
value = "https://dev01.pnpg.internal.dev.selfcare.pagopa.it/ms-product/v1"
name = "MS_PRODUCT_URL"
value = "https://selc-d-pnpg-product-ca.whiteglacier-211c4885.westeurope.azurecontainerapps.io"
},
{
name = "USERVICE_USER_REGISTRY_URL"
Expand All @@ -173,16 +187,16 @@ app_settings = [
]

secrets_names = {
"STORAGE_APPLICATION_SECRET" = "contracts-storage-access-key"
"ADDRESS_EMAIL_NOTIFICATION_ADMIN" = "portal-admin-operator-email"
"APPLICATIONINSIGHTS_CONNECTION_STRING" = "appinsights-connection-string"
"MAIL_SENDER_ADDRESS" = "smtp-usr"
"MONGODB_CONNECTION_URI" = "mongodb-connection-string"
"BLOB_STORAGE_CONN_STRING" = "blob-storage-contract-connection-string"
"STORAGE_CREDENTIAL_SECRET" = "contracts-storage-access-key"
"SMTP_USR" = "smtp-usr"
"SMTP_PSW" = "smtp-psw"
"ONBOARDING_INSTITUTION_ALTERNATIVE_EMAIL" = "party-test-institution-email"
"USER_REGISTRY_API_KEY" = "user-registry-api-key"
"JWT_TOKEN_PUBLIC_KEY" = "jwt-public-key"
"STORAGE_APPLICATION_SECRET" = "contracts-storage-access-key"
"ADDRESS_EMAIL_NOTIFICATION_ADMIN" = "portal-admin-operator-email"
"APPLICATIONINSIGHTS_CONNECTION_STRING" = "appinsights-connection-string"
"MAIL_SENDER_ADDRESS" = "smtp-usr"
"MONGODB_CONNECTION_URI" = "mongodb-connection-string"
"BLOB_STORAGE_CONN_STRING" = "blob-storage-contract-connection-string"
"STORAGE_CREDENTIAL_SECRET" = "contracts-storage-access-key"
"SMTP_USR" = "smtp-usr"
"SMTP_PSW" = "smtp-psw"
"ONBOARDING_INSTITUTION_ALTERNATIVE_EMAIL" = "party-test-institution-email"
"USER_REGISTRY_API_KEY" = "user-registry-api-key"
"JWT_TOKEN_PUBLIC_KEY" = "jwt-public-key"
}
Loading
Loading