-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app: Update
template-infra:app
to version 0.15.3.post2.dev0+8d7ab07
- Loading branch information
1 parent
bba7622
commit 6e657d2
Showing
3 changed files
with
20 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
module "secrets" { | ||
for_each = local.service_config.secrets | ||
source = "../../modules/secrets" | ||
|
||
source = "../../modules/secret" | ||
service_name = local.service_name | ||
secrets = { | ||
for name, config in local.service_config.secrets : | ||
name => { | ||
manage_method = config.manage_method | ||
|
||
# When generating secrets and storing them in parameter store, append the | ||
# terraform workspace to the secret store path if the environment is temporary | ||
# to avoid conflicts with existing environments. | ||
# Don't do this for secrets that are managed manually since the temporary | ||
# environments will need to share those secrets. | ||
secret_store_name = (each.value.manage_method == "generated" && local.is_temporary ? | ||
"${each.value.secret_store_name}/${terraform.workspace}" : | ||
each.value.secret_store_name | ||
) | ||
manage_method = each.value.manage_method | ||
# When generating secrets and storing them in parameter store, append the | ||
# terraform workspace to the secret store path if the environment is temporary | ||
# to avoid conflicts with existing environments. | ||
# Don't do this for secrets that are managed manually since the temporary | ||
# environments will need to share those secrets. | ||
secret_store_name = (config.manage_method == "generated" && local.is_temporary ? | ||
"${config.secret_store_name}/${terraform.workspace}" : | ||
config.secret_store_name | ||
) | ||
} | ||
} | ||
} |