Skip to content

Commit

Permalink
Fix/secrets policies (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
feraudet authored Oct 17, 2022
1 parent 5d6d4b9 commit f021b23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion policies.tf
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ data "aws_iam_policy_document" "task_container_secrets" {

resources = concat(
[data.aws_kms_key.task_container_secrets_key.arn],
[for i in var.task_container_secrets : i["valueFrom"]]
[for i in var.task_container_secrets : replace(i["valueFrom"], "/:[^:]+::$/", "")]
)
actions = [
"secretsmanager:GetSecretValue",
Expand Down

0 comments on commit f021b23

Please sign in to comment.