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

chore: Added stuff to deploy to UAT environment of CSTAR subscription. #151

Merged
merged 1 commit into from
Nov 6, 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
1 change: 1 addition & 0 deletions src/main/terraform/env/cstar-u-tier-0/backend.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
subscription=UAT-CSTAR
4 changes: 4 additions & 0 deletions src/main/terraform/env/cstar-u-tier-0/backend.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource_group_name = "terraform-state-rg"
storage_account_name = "tfappuatcstar"
container_name = "terraform-state"
key = "tier-0-auth.tfstate"
63 changes: 63 additions & 0 deletions src/main/terraform/env/cstar-u-tier-0/terraform.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# ------------------------------------------------------------------------------
# General variables.
# ------------------------------------------------------------------------------
prefix = "cstar"
env_short = "u"
env = "uat"
location = "westeurope" # this will be "italynorth"
location_short = "weu" # this will be "itn"
domain = "tier-0"

tags = {
CreatedBy = "Terraform"
Environment = "uat"
Owner = "cstar"
Source = "https://github.com/pagopa/mil-auth/tree/main/src/main/terraform"
CostCenter = "TS310 - PAGAMENTI & SERVIZI"
}

# ------------------------------------------------------------------------------
# External resources.
# ------------------------------------------------------------------------------
cae_name = "cstar-u-tier-0-cae"
cae_resource_group_name = "cstar-u-tier-0-app-rg"
id_name = "cstar-u-tier-0-auth-id"
id_resource_group_name = "cstar-u-tier-0-identity-rg"
general_kv_name = "cstar-u-tier-0-gen-kv"
general_kv_resource_group_name = "cstar-u-tier-0-sec-rg"
auth_kv_name = "cstar-u-tier-0-auth-kv"
auth_kv_resource_group_name = "cstar-u-tier-0-sec-rg"
auth_st_name = "cstarutier0authst"
auth_st_resource_group_name = "cstar-u-tier-0-data-rg"

# ------------------------------------------------------------------------------
# Names of key vault secrets.
# ------------------------------------------------------------------------------
cosmosdb_account_primary_mongodb_connection_string_kv_secret = "cosmosdb-account-tier-0-primary-mongodb-connection-string"
cosmosdb_account_secondary_mongodb_connection_string_kv_secret = "cosmosdb-account-tier-0-secondary-mongodb-connection-string"
storage_account_primary_blob_endpoint_kv_secret = "storage-account-auth-primary-blob-endpoint"
key_vault_auth_vault_uri_kv_secret = "key-vault-auth-vault-uri"
application_insigths_connection_string_kv_secret = "core-application-insigths-connection-string"

# ------------------------------------------------------------------------------
# Configuration of the microservice.
# ------------------------------------------------------------------------------
mil_auth_quarkus_log_level = "ERROR"
mil_auth_app_log_level = "DEBUG"
mil_auth_json_log = true
mil_auth_quarkus_rest_client_logging_scope = "all"
mil_auth_cryptoperiod = 43200
mil_auth_keysize = 2048
mil_auth_access_duration = 900
mil_auth_refresh_duration = 3600
mil_auth_image = "ghcr.io/pagopa/mil-auth:latest"
mil_auth_cpu = 1
mil_auth_memory = "2Gi"
mil_auth_max_replicas = 5
mil_auth_min_replicas = 1
mil_auth_keyvault_maxresults = 20
mil_auth_keyvault_backoff_num_of_attempts = 5
mil_auth_mongodb_connect_timeout = "5s"
mil_auth_mongodb_read_timeout = "10s"
mil_auth_mongodb_server_selection_timeout = "5s"
mil_auth_base_url = "https://mil-d-apim.azure-api.net/mil-auth"
Loading