From 6540b0906aacab1eed7b79b6753006c052415e65 Mon Sep 17 00:00:00 2001 From: Russell Day Date: Thu, 25 Apr 2024 23:09:25 +0100 Subject: [PATCH] Get ready for prod deployment with smaller provision --- terraform/blazor_client.tf | 2 -- terraform/locals.tf | 2 +- tfvars/Production.tfvars | 19 ++++++++++++++----- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/terraform/blazor_client.tf b/terraform/blazor_client.tf index cfd71a9..4943190 100644 --- a/terraform/blazor_client.tf +++ b/terraform/blazor_client.tf @@ -7,8 +7,6 @@ resource "azurerm_static_web_app" "blazor-client" { sku_size = var.client_sku_size app_settings = { - "ASPNETCORE_ENVIRONMENT": "${ var.env }" - "DOTNET_ENVIRONMENT": "${ var.env }" "apiUrl": "https://pocketddd-${ var.env }-api-server-web-app.azurewebsites.net/api/" "fakeBackend": "false" } diff --git a/terraform/locals.tf b/terraform/locals.tf index 8c2b8b5..d6fce8f 100644 --- a/terraform/locals.tf +++ b/terraform/locals.tf @@ -1,5 +1,5 @@ locals { resource_prefix = "pocketddd-${var.env}" sql_server_name = "${local.resource_prefix}-sql-server" - subdomain = var.env == "Production" ? "pocket" : "pocket-${var.env}" + subdomain = var.env == "prod" ? "pocket" : "pocket-${var.env}" } \ No newline at end of file diff --git a/tfvars/Production.tfvars b/tfvars/Production.tfvars index be4ae7a..8af8b9d 100644 --- a/tfvars/Production.tfvars +++ b/tfvars/Production.tfvars @@ -1,7 +1,16 @@ env = "prod" -sql_db_sku = "S0" -sql_max_storage = "10" +sql_db_sku = "Basic" +sql_max_storage = "2" api_app_service_sku = "B1" -api_always_on = true -client_sku_tier = "Standard" -client_sku_size = "Standard" \ No newline at end of file +api_always_on = false +client_sku_tier = "Free" +client_sku_size = "Free" + +# Real prod values +# env = "prod" +# sql_db_sku = "S0" +# sql_max_storage = "10" +# api_app_service_sku = "B1" +# api_always_on = true +# client_sku_tier = "Standard" +# client_sku_size = "Standard" \ No newline at end of file