Skip to content

Commit

Permalink
Get ready for prod deployment with smaller provision
Browse files Browse the repository at this point in the history
  • Loading branch information
russdaygh committed Apr 25, 2024
1 parent ef0a29b commit 6540b09
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
2 changes: 0 additions & 2 deletions terraform/blazor_client.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
2 changes: 1 addition & 1 deletion terraform/locals.tf
Original file line number Diff line number Diff line change
@@ -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}"
}
19 changes: 14 additions & 5 deletions tfvars/Production.tfvars
Original file line number Diff line number Diff line change
@@ -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"
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"

0 comments on commit 6540b09

Please sign in to comment.