Skip to content

Commit

Permalink
more ddb table perms (#18)
Browse files Browse the repository at this point in the history
jarrod-lowe authored Aug 11, 2024
1 parent e076878 commit 2dcb6be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions terraform/environment/aws/policy.tf
Original file line number Diff line number Diff line change
@@ -46,6 +46,8 @@ data "aws_iam_policy_document" "rw" {
actions = [
"dynamodb:CreateTable",
"dynamodb:DeleteTable",
"dynamodb:TagResource",
"dynamodb:UntagResource",
]
resources = [
"arn:${data.aws_partition.current.id}:dynamodb:${data.aws_region.current.id}:${data.aws_caller_identity.current.account_id}:table/${var.app_name}-${var.environment}"
@@ -88,6 +90,8 @@ data "aws_iam_policy_document" "rw_boundary" {
"dynamodb:DeleteItem",
"dynamodb:UpdateItem*",
"dynamodb:PutItem*",
"dynamodb:TagResource",
"dynamodb:UntagResource",
]
resources = [
"arn:${data.aws_partition.current.id}:dynamodb:${data.aws_region.current.id}:${data.aws_caller_identity.current.account_id}:table/${var.app_name}-${var.environment}"

0 comments on commit 2dcb6be

Please sign in to comment.