Skip to content

Commit

Permalink
support attributes for eks/argocd
Browse files Browse the repository at this point in the history
  • Loading branch information
milldr committed Sep 18, 2023
1 parent b41f245 commit 1ffa278
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/eks/argocd/data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ data "aws_ssm_parameter" "github_deploy_key" {
name = local.enabled ? format(
module.argocd_repo[each.key].outputs.deploy_keys_ssm_path_format,
format(
"${module.this.tenant != null ? "%[1]s/" : ""}%[2]s-%[3]s",
"${module.this.tenant != null ? "%[1]s/" : ""}%[2]s-%[3]s${length(module.this.attributes) > 0 ? "-%[4]s" : "%[4]s"}",
module.this.tenant,
module.this.environment,
module.this.stage
module.this.stage,
"${join("-", module.this.attributes)}"
)
) : null

Expand Down

0 comments on commit 1ffa278

Please sign in to comment.