Skip to content

Commit

Permalink
add uat and prod envs for pnpg
Browse files Browse the repository at this point in the history
  • Loading branch information
Krusty93 committed Feb 5, 2024
1 parent 7baaa87 commit f5525c2
Show file tree
Hide file tree
Showing 7 changed files with 136 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ container_app = {
app_settings = [
{
name = "USER_REGISTRY_URL"
value = "https://api.uat.pdv.pagopa.it/user-registry/v1"
value = "https://api.dev.pdv.pagopa.it/user-registry/v1"
},
{
name = "ONBOARDING_FUNCTIONS_URL"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
subscription=PROD-SelfCare
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource_group_name = "terraform-state-rg"
storage_account_name = "tfappprodselfcare"
container_name = "terraform-state"
key = "selfcare-pnpg-onboarding.container_app.tfstate"
69 changes: 69 additions & 0 deletions infra/container_apps/onboarding-ms/env/prod-pnpg/terraform.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
prefix = "selc"
env_short = "p"
is_pnpg = true

tags = {
CreatedBy = "Terraform"
Environment = "Prod"
Owner = "SelfCare"
Source = "https://github.com/pagopa/selfcare-onboarding"
CostCenter = "TS310 - PAGAMENTI & SERVIZI"
}

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

app_settings = [
{
name = "USER_REGISTRY_URL"
value = "https://api.pdv.pagopa.it/user-registry/v1"
},
{
name = "ONBOARDING_FUNCTIONS_URL"
value = "https://selc-p-onboarding-fn.azurewebsites.net"
},
{
name = "ONBOARDING_ALLOWED_INSTITUTIONS_PRODUCTS"
value = "{'prod-interop': ['*'], 'prod-pn': ['*'], 'prod-io': ['*'], 'prod-io-premium': ['*'], 'prod-pagopa': ['*'], 'prod-fd': ['*'], 'prod-fd-garantito': ['*'], 'prod-sendino': ['*']}"
},
{
name = "STORAGE_CONTAINER_PRODUCT"
value = "selc-p-product"
},
{
name = "MS_CORE_URL"
value = "https://selc.internal.selfcare.pagopa.it/ms-core/v1"
},
{
name = "MS_PARTY_REGISTRY_URL"
value = "http://selc.internal.selfcare.pagopa.it/party-registry-proxy/v1"
},
{
name = "SIGNATURE_VALIDATION_ENABLED"
value = "false"
}
]

secrets_names = [
"jwt-public-key",
"mongodb-connection-string",
"user-registry-api-key"
]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
subscription=UAT-SelfCare
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource_group_name = "terraform-state-rg"
storage_account_name = "tfappuatselfcare"
container_name = "terraform-state"
key = "selfcare-pnpg-onboarding.container_app.tfstate"
56 changes: 56 additions & 0 deletions infra/container_apps/onboarding-ms/env/uat-pnpg/terraform.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
prefix = "selc"
env_short = "u"
is_pnpg = true

tags = {
CreatedBy = "Terraform"
Environment = "Uat"
Owner = "SelfCare"
Source = "https://github.com/pagopa/selfcare-onboarding"
CostCenter = "TS310 - PAGAMENTI & SERVIZI"
}

container_app = {
min_replicas = 0
max_replicas = 1
scale_rules = []
cpu = 0.5
memory = "1Gi"
}

app_settings = [
{
name = "USER_REGISTRY_URL"
value = "https://api.uat.pdv.pagopa.it/user-registry/v1"
},
{
name = "ONBOARDING_FUNCTIONS_URL"
value = "https://selc-u-onboarding-fn.azurewebsites.net"
},
{
name = "ONBOARDING_ALLOWED_INSTITUTIONS_PRODUCTS"
value = "{'prod-interop': ['*'], 'prod-pn': ['*'], 'prod-io': ['*'], 'prod-io-premium': ['*'], 'prod-pagopa': ['*'], 'prod-fd': ['*'], 'prod-fd-garantito': ['*'], 'prod-sendino': ['*']}"
},
{
name = "STORAGE_CONTAINER_PRODUCT"
value = "selc-u-product"
},
{
name = "MS_CORE_URL"
value = "https://selc.internal.uat.selfcare.pagopa.it/ms-core/v1"
},
{
name = "MS_PARTY_REGISTRY_URL"
value = "http://selc.internal.uat.selfcare.pagopa.it/party-registry-proxy/v1"
},
{
name = "SIGNATURE_VALIDATION_ENABLED"
value = "false"
}
]

secrets_names = [
"jwt-public-key",
"mongodb-connection-string",
"user-registry-api-key"
]

0 comments on commit f5525c2

Please sign in to comment.