Skip to content

Commit

Permalink
use variable for aws account id
Browse files Browse the repository at this point in the history
Signed-off-by: Shay Yannay <[email protected]>
  • Loading branch information
ShayYannay authored and turkenf committed Jul 8, 2024
1 parent ab8a8f9 commit 57d1aa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/dynamodb/v1beta1/resourcepolicy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
{
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::123456789012:root"
"AWS": "arn:aws:iam::${data.aws_account_id}:root"
},
"Action": [
"dynamodb:BatchGetItem",
Expand All @@ -29,7 +29,7 @@ spec:
"dynamodb:DeleteItem"
],
"Resource": [
"arn:aws:dynamodb:us-east-2:123456789012:table/example"
"arn:aws:dynamodb:us-east-2:${data.aws_account_id}:table/example"
]
}
]
Expand Down

0 comments on commit 57d1aa3

Please sign in to comment.