Skip to content

Commit

Permalink
Give secrets access to iam policy
Browse files Browse the repository at this point in the history
  • Loading branch information
hellais committed Feb 23, 2024
1 parent dc59121 commit d86fc55
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tf/environments/prod/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,25 @@ resource "aws_iam_role_policy" "ecs_service" {
"elasticloadbalancing:RegisterTargets"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"secretsmanager:GetResourcePolicy",
"secretsmanager:GetSecretValue",
"secretsmanager:DescribeSecret",
"secretsmanager:ListSecretVersionIds"
],
"Resource": [
"arn:aws:secretsmanager:us-west-2:111122223333:secret:aes128-1a2b3c",
"arn:aws:secretsmanager:us-west-2:111122223333:secret:aes192-4D5e6F",
"arn:aws:secretsmanager:us-west-2:111122223333:secret:aes256-7g8H9i"
]
},
{
"Effect": "Allow",
"Action": "secretsmanager:ListSecrets",
"Resource": "*"
}
]
}
Expand Down

0 comments on commit d86fc55

Please sign in to comment.