Skip to content

Commit

Permalink
fix payload admin password
Browse files Browse the repository at this point in the history
  • Loading branch information
kahlstrm committed May 9, 2024
1 parent 64fac21 commit 40834de
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,11 @@ module "web" {
google_oauth_client_secret = module.keyvault.google_oauth_client_secret
public_ilmo_url = "https://${module.ilmo.fqdn}"
}

resource "azurerm_key_vault_secret" "cms_password" {
name = "cms-password"
value = module.web.payload_password
key_vault_id = module.keyvault.keyvault_id
}
module "ilmo" {
source = "./modules/ilmo"
env_name = "prod"
Expand Down
2 changes: 1 addition & 1 deletion modules/web/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ resource "random_password" "payload_secret" {
}
resource "random_password" "payload_password" {
length = 32
special = true
special = false
}
resource "azurerm_linux_web_app" "cms" {
name = "tikweb-cms-${terraform.workspace}"
Expand Down
4 changes: 4 additions & 0 deletions modules/web/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
output "fqdn" {
value = local.fqdn
}
output "payload_password" {
value = random_password.payload_password.result
sensitive = true
}

0 comments on commit 40834de

Please sign in to comment.