Skip to content

Commit

Permalink
Merge pull request #9058 from ministryofjustice/feature/DPR2-1514-pol…
Browse files Browse the repository at this point in the history
…icy-fix

[DPR2-1576] Fix DPD DDB STS IAM policy
  • Loading branch information
stalwartstu authored Dec 11, 2024
2 parents a27b2d6 + da26278 commit 6045caf
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ resource "aws_iam_role_policy_attachment" "dpd_table_github_deploy_put_policy" {

data "aws_iam_policy_document" "dpd_table_read_policy" {
statement {
sid = "DeployDpdItems"
sid = "ReadDpdItems"
effect = "Allow"
actions = [
"dynamodb:DescribeTable",
Expand All @@ -114,7 +114,8 @@ data "aws_iam_policy_document" "dpd_table_read_policy" {
"dynamodb:Query",
]
resources = [
module.dynamo_table_dpd.dynamodb_table_arn
module.dynamo_table_dpd.dynamodb_table_arn,
"${module.dynamo_table_dpd.dynamodb_table_arn}/index/*"
]
}
}
Expand Down

0 comments on commit 6045caf

Please sign in to comment.