From 57d1aa3efa3b60bccc4abe6315cad3393a72b824 Mon Sep 17 00:00:00 2001 From: Shay Date: Thu, 6 Jun 2024 08:54:19 +0300 Subject: [PATCH] use variable for aws account id Signed-off-by: Shay Yannay --- examples/dynamodb/v1beta1/resourcepolicy.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/dynamodb/v1beta1/resourcepolicy.yaml b/examples/dynamodb/v1beta1/resourcepolicy.yaml index c3716c7727..0ee0404c20 100644 --- a/examples/dynamodb/v1beta1/resourcepolicy.yaml +++ b/examples/dynamodb/v1beta1/resourcepolicy.yaml @@ -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", @@ -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" ] } ]