Skip to content

Commit

Permalink
chore: Move to Container App Env workload PROD (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
manuraf authored Jul 24, 2024
1 parent b5ec6ae commit 3f4569e
Show file tree
Hide file tree
Showing 12 changed files with 96 additions and 90 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
prefix = "selc"
env_short = "p"
is_pnpg = true
is_pnpg = true

tags = {
CreatedBy = "Terraform"
Expand Down
6 changes: 4 additions & 2 deletions infra/container_apps/user-cdc/env/prod/terraform.tfvars
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
prefix = "selc"
env_short = "p"
prefix = "selc"
env_short = "p"
suffix_increment = "-002"
cae_name = "cae-002"

tags = {
CreatedBy = "Terraform"
Expand Down
18 changes: 9 additions & 9 deletions infra/container_apps/user-cdc/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ module "container_app_user_cdc" {
port = 8080
scheme = "HTTP"
}
timeoutSeconds = 5
type = "Liveness"
failureThreshold = 3
timeoutSeconds = 5
type = "Liveness"
failureThreshold = 3
initialDelaySeconds = 1
},
{
Expand All @@ -42,9 +42,9 @@ module "container_app_user_cdc" {
port = 8080
scheme = "HTTP"
}
timeoutSeconds = 5
type = "Readiness"
failureThreshold = 30
timeoutSeconds = 5
type = "Readiness"
failureThreshold = 30
initialDelaySeconds = 3
},
{
Expand All @@ -53,9 +53,9 @@ module "container_app_user_cdc" {
port = 8080
scheme = "HTTP"
}
timeoutSeconds = 5
failureThreshold = 5
type = "Startup"
timeoutSeconds = 5
failureThreshold = 5
type = "Startup"
initialDelaySeconds = 5
}
]
Expand Down
4 changes: 3 additions & 1 deletion infra/container_apps/user-group-ms/env/prod/terraform.tfvars
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
env_short = "p"
env_short = "p"
suffix_increment = "-002"
cae_name = "cae-002"

tags = {
CreatedBy = "Terraform"
Expand Down
24 changes: 12 additions & 12 deletions infra/container_apps/user-ms/env/dev-pnpg/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,18 @@ app_settings = [
name = "EVENTHUB-SC-USERS-SELFCARE-WO-KEY-LC"
value = "string"
},
{
name = "USER_MS_RETRY_MIN_BACKOFF"
value = 5
},
{
name = "USER_MS_RETRY_MAX_BACKOFF"
value = 60
},
{
name = "USER_MS_RETRY"
value = 3
}
{
name = "USER_MS_RETRY_MIN_BACKOFF"
value = 5
},
{
name = "USER_MS_RETRY_MAX_BACKOFF"
value = 60
},
{
name = "USER_MS_RETRY"
value = 3
}
]

secrets_names = {
Expand Down
32 changes: 16 additions & 16 deletions infra/container_apps/user-ms/env/dev/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -50,22 +50,22 @@ app_settings = [
name = "SHARED_ACCESS_KEY_NAME"
value = "selfcare-wo"
},
{
name = "USER_MS_EVENTHUB_USERS_ENABLED"
value = true
},
{
name = "USER_MS_RETRY_MIN_BACKOFF"
value = 5
},
{
name = "USER_MS_RETRY_MAX_BACKOFF"
value = 60
},
{
name = "USER_MS_RETRY"
value = 3
}
{
name = "USER_MS_EVENTHUB_USERS_ENABLED"
value = true
},
{
name = "USER_MS_RETRY_MIN_BACKOFF"
value = 5
},
{
name = "USER_MS_RETRY_MAX_BACKOFF"
value = 60
},
{
name = "USER_MS_RETRY"
value = 3
}
]

secrets_names = {
Expand Down
8 changes: 4 additions & 4 deletions infra/container_apps/user-ms/env/prod-pnpg/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ app_settings = [
name = "EVENTHUB-SC-USERS-SELFCARE-WO-KEY-LC"
value = "string"
},
{
name = "STORAGE_CONTAINER_PRODUCT"
value = "selc-p-product"
},
{
name = "STORAGE_CONTAINER_PRODUCT"
value = "selc-p-product"
},
{
name = "USER_REGISTRY_URL"
value = "https://api.pdv.pagopa.it/user-registry/v1"
Expand Down
20 changes: 11 additions & 9 deletions infra/container_apps/user-ms/env/prod/terraform.tfvars
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
env_short = "p"
env_short = "p"
suffix_increment = "-002"
cae_name = "cae-002"

tags = {
CreatedBy = "Terraform"
Expand Down Expand Up @@ -42,14 +44,14 @@ app_settings = [
name = "SHARED_ACCESS_KEY_NAME"
value = "selfcare-wo"
},
{
name = "USER_MS_EVENTHUB_USERS_ENABLED"
value = true
},
{
name = "STORAGE_CONTAINER_PRODUCT"
value = "selc-p-product"
},
{
name = "USER_MS_EVENTHUB_USERS_ENABLED"
value = true
},
{
name = "STORAGE_CONTAINER_PRODUCT"
value = "selc-p-product"
},
{
name = "USER_REGISTRY_URL"
value = "https://api.pdv.pagopa.it/user-registry/v1"
Expand Down
20 changes: 10 additions & 10 deletions infra/container_apps/user-ms/env/uat-pnpg/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,22 @@ app_settings = [
name = "EVENTHUB-SC-USERS-SELFCARE-WO-KEY-LC"
value = "string"
},
{
name = "STORAGE_CONTAINER_PRODUCT"
value = "selc-u-product"
},
{
{
name = "STORAGE_CONTAINER_PRODUCT"
value = "selc-u-product"
},
{
name = "USER_MS_RETRY_MIN_BACKOFF"
value = 5
},
{
},
{
name = "USER_MS_RETRY_MAX_BACKOFF"
value = 60
},
{
},
{
name = "USER_MS_RETRY"
value = 3
}
}
]

secrets_names = {
Expand Down
28 changes: 14 additions & 14 deletions infra/container_apps/user-ms/env/uat/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -39,26 +39,26 @@ app_settings = [
name = "SHARED_ACCESS_KEY_NAME"
value = "selfcare-wo"
},
{
name = "USER_MS_EVENTHUB_USERS_ENABLED"
value = true
},
{
name = "STORAGE_CONTAINER_PRODUCT"
value = "selc-u-product"
},
{
{
name = "USER_MS_EVENTHUB_USERS_ENABLED"
value = true
},
{
name = "STORAGE_CONTAINER_PRODUCT"
value = "selc-u-product"
},
{
name = "USER_MS_RETRY_MIN_BACKOFF"
value = 5
},
{
},
{
name = "USER_MS_RETRY_MAX_BACKOFF"
value = 60
},
{
},
{
name = "USER_MS_RETRY"
value = 3
}
}

]

Expand Down
18 changes: 9 additions & 9 deletions infra/container_apps/user-ms/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ module "container_app_user_ms" {
port = 8080
scheme = "HTTP"
}
timeoutSeconds = 5
type = "Liveness"
failureThreshold = 3
timeoutSeconds = 5
type = "Liveness"
failureThreshold = 3
initialDelaySeconds = 1
},
{
Expand All @@ -42,9 +42,9 @@ module "container_app_user_ms" {
port = 8080
scheme = "HTTP"
}
timeoutSeconds = 5
type = "Readiness"
failureThreshold = 30
timeoutSeconds = 5
type = "Readiness"
failureThreshold = 30
initialDelaySeconds = 3
},
{
Expand All @@ -53,9 +53,9 @@ module "container_app_user_ms" {
port = 8080
scheme = "HTTP"
}
timeoutSeconds = 5
failureThreshold = 5
type = "Startup"
timeoutSeconds = 5
failureThreshold = 5
type = "Startup"
initialDelaySeconds = 5
}
]
Expand Down
6 changes: 3 additions & 3 deletions infra/container_apps/user-ms/mongo_db.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ module "mongodb_collection_user_institutions" {
cosmosdb_mongo_database_name = azurerm_cosmosdb_mongo_database.selc_user.name

indexes = [{
keys = ["_id"]
unique = true
keys = ["_id"]
unique = true
},
{
keys = ["userId","institutionId"]
keys = ["userId", "institutionId"]
unique = false
}
]
Expand Down

0 comments on commit 3f4569e

Please sign in to comment.