From c8f185b07adbd4b44d8d760ca53f009a29f4680e Mon Sep 17 00:00:00 2001 From: ccuffari <75679158+ccuffari@users.noreply.github.com> Date: Tue, 10 Sep 2024 18:08:38 +0200 Subject: [PATCH] Create terraform.tfvars --- environments/dev/terraform.tfvars | 125 ++++++++++++++++++++++++++++++ 1 file changed, 125 insertions(+) create mode 100644 environments/dev/terraform.tfvars diff --git a/environments/dev/terraform.tfvars b/environments/dev/terraform.tfvars new file mode 100644 index 0000000..20eaaca --- /dev/null +++ b/environments/dev/terraform.tfvars @@ -0,0 +1,125 @@ +# Valori per le istanze Redis +redis_instances = { + redis1 = { + name = "dev-redis1" + location = "West Europe" + resource_group_name = "dev-rg-cfc" + capacity = 2 + family = "C" + sku_name = "Standard" + enable_non_ssl_port = false + minimum_tls_version = "1.2" + tags = { + environment = "dev" + project = "PagoPA" + } + }, + redis2 = { + name = "dev-redis2" + location = "West Europe" + resource_group_name = "dev-rg-cfc" + capacity = 2 + family = "C" + sku_name = "Standard" + enable_non_ssl_port = false + minimum_tls_version = "1.2" + tags = { + environment = "dev" + project = "PagoPA" + } + } +} + +# Valori per gli storage account +storage_accounts = { + storage1 = { + name = "devstorage1cfc" + resource_group_name = "dev-rg-cfc" + location = "West Europe" + account_tier = "Standard" + account_replication_type = "LRS" + tags = { + environment = "dev" + project = "PagoPA" + } + }, + storage2 = { + name = "devstorage2cfc" + resource_group_name = "dev-rg-cfc" + location = "West Europe" + account_tier = "Standard" + account_replication_type = "LRS" + tags = { + environment = "dev" + project = "PagoPA" + } + }, + storage3 = { + name = "devstorage3cfc" + resource_group_name = "dev-rg-cfc" + location = "West Europe" + account_tier = "Standard" + account_replication_type = "LRS" + tags = { + environment = "dev" + project = "PagoPA" + } + } +} + +# Valori per le macchine virtuali +vm_instances = { + vm1 = { + vm_name = "dev-vm1" + location = "West Europe" + resource_group_name = "dev-rg-cfc" + subnet_id = "/subscriptions//resourceGroups/dev-rg-cfc/providers/Microsoft.Network/virtualNetworks/dev-vnet/subnets/dev-subnet" + vm_size = "Standard_B2ms" + admin_username = "adminuser" + admin_password = "P@ssw0rd!" + tags = { + environment = "dev" + project = "PagoPA" + } + }, + vm2 = { + vm_name = "dev-vm2" + location = "West Europe" + resource_group_name = "dev-rg-cfc" + subnet_id = "/subscriptions//resourceGroups/dev-rg-cfc/providers/Microsoft.Network/virtualNetworks/dev-vnet/subnets/dev-subnet" + vm_size = "Standard_B2ms" + admin_username = "adminuser" + admin_password = "P@ssw0rd!" + tags = { + environment = "dev" + project = "PagoPA" + } + } +} + +# Valori per i database Cosmos DB e PostgreSQL +databases = { + cosmos1 = { + account_name = "dev-cosmos1" + location = "West Europe" + resource_group_name = "dev-rg-cfc" + offer_type = "Standard" + consistency_policy = "Session" + tags = { + environment = "dev" + project = "PagoPA" + } + }, + postgres1 = { + account_name = "dev-postgres1" + location = "West Europe" + resource_group_name = "dev-rg-cfc" + offer_type = "GP_Gen5" + consistency_policy = "Session" + admin_password = "P@ssw0rd!" + tags = { + environment = "dev" + project = "PagoPA" + } + } +}