Skip to content

Commit

Permalink
Add explicit parameter store path (#1110)
Browse files Browse the repository at this point in the history
  • Loading branch information
wavemoran committed Sep 11, 2024
1 parent d0a5984 commit ee6cdc8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions modules/eks/external-secrets-operator/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,13 @@ module "external_secrets_operator" {
actions = [
"ssm:GetParameter*"
]
resources = [for parameter_store_path in var.parameter_store_paths : (
"arn:aws:ssm:${var.region}:${local.account}:parameter/${parameter_store_path}/*"
)]
resources = concat(
[for parameter_store_path in var.parameter_store_paths : (
"arn:aws:ssm:${var.region}:${local.account}:parameter/${parameter_store_path}/*"
)],
[for parameter_store_path in var.parameter_store_paths : (
"arn:aws:ssm:${var.region}:${local.account}:parameter/${parameter_store_path}"
)])
},
{
sid = "DescribeParameters"
Expand Down

0 comments on commit ee6cdc8

Please sign in to comment.