Skip to content

Commit

Permalink
feat: reduce dynamodb permission scope to state table (#23)
Browse files Browse the repository at this point in the history
This diff reduces the `dynamodb:*` permissions to the terraform state
table:
`arn:aws:dynamodb:eu-central-1:905418398257:table/oonidevops-dev-terraform-state-lock`

Related to: #21
  • Loading branch information
DecFox authored Mar 14, 2024
1 parent b4258f2 commit ae5f8fa
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"codestar-notifications:listNotificationRules",
"codestar-notifications:listTagsForResource",
"codestar-notifications:ListTargets",
"dynamodb:*",
"ec2:Describe*",
"ec2:Get*",
"ec2:ListImagesInRecycleBin",
Expand Down Expand Up @@ -156,6 +155,13 @@
],
"Effect": "Allow",
"Resource": "*"
},
{
"Action": [
"dynamodb:*"
],
"Effect": "Allow",
"Resource": "arn:aws:dynamodb:eu-central-1:905418398257:table/oonidevops-dev-terraform-state-lock"
}
],
"Version": "2012-10-17"
Expand Down

0 comments on commit ae5f8fa

Please sign in to comment.