Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
RMcVelia committed Nov 1, 2024
1 parent 570892c commit 470ba64
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions terraform/aks/config/review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
EXAMPLE_KEY: example.value.1
4 changes: 1 addition & 3 deletions terraform/aks/output.tf
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
output "url" {
value = [
module.web_application.url,
module.web_application.url
]
}

output "external_urls" {
value = [
module.web_application.url,
module.web_application.url
"${local.external_url}"
]
}
4 changes: 4 additions & 0 deletions terraform/aks/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,12 @@ locals {
infra_secrets = yamldecode(data.azurerm_key_vault_secret.infra_secrets.value)
app_config = yamldecode(file(var.app_config_file))[var.environment]

environment_variables = yamldecode(file("${path.module}/config/${var.environment}.yml"))
external_url = try(local.environment_variables["EXTERNAL_URL"], module.web_application.url)

app_env_values = merge(
local.app_config,
local.environment_variables,
# sslmode not defined in database.yml?
{ DB_SSLMODE = local.postgres_ssl_mode }
)
Expand Down

0 comments on commit 470ba64

Please sign in to comment.