-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Added stuff to deploy to CSTAR-dev subscription. (#149)
- Loading branch information
1 parent
10710ca
commit 20c89b2
Showing
8 changed files
with
226 additions
and
39 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
subscription=DEV-cstar |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
resource_group_name = "terraform-state-rg" | ||
storage_account_name = "tfappdevcstar" | ||
container_name = "terraform-state" | ||
key = "tier-0-auth.tfstate" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# ------------------------------------------------------------------------------ | ||
# General variables. | ||
# ------------------------------------------------------------------------------ | ||
prefix = "cstar" | ||
env_short = "d" | ||
env = "dev" | ||
location = "westeurope" # this will be "italynorth" | ||
location_short = "weu" # this will be "itn" | ||
domain = "tier-0" | ||
|
||
tags = { | ||
CreatedBy = "Terraform" | ||
Environment = "dev" | ||
Owner = "cstar" | ||
Source = "https://github.com/pagopa/mil-auth/tree/main/src/main/terraform" | ||
CostCenter = "TS310 - PAGAMENTI & SERVIZI" | ||
} | ||
|
||
# ------------------------------------------------------------------------------ | ||
# External resources. | ||
# ------------------------------------------------------------------------------ | ||
cae_name = "cstar-d-tier-0-cae" | ||
cae_resource_group_name = "cstar-d-tier-0-app-rg" | ||
id_name = "cstar-d-tier-0-auth-id" | ||
id_resource_group_name = "cstar-d-tier-0-identity-rg" | ||
general_kv_name = "cstar-d-tier-0-gen-kv" | ||
general_kv_resource_group_name = "cstar-d-tier-0-sec-rg" | ||
auth_kv_name = "cstar-d-tier-0-auth-kv" | ||
auth_kv_resource_group_name = "cstar-d-tier-0-sec-rg" | ||
auth_st_name = "cstardtier0authst" | ||
auth_st_resource_group_name = "cstar-d-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" |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
locals { | ||
project = "${var.prefix}-${var.env_short}" | ||
domain = "mil" | ||
# | ||
# Project label. | ||
# | ||
project = var.domain == "" ? "${var.prefix}-${var.env_short}" : "${var.prefix}-${var.env_short}-${var.domain}" | ||
} |
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