Skip to content

Commit a01bc2c

Browse files
authored
fix(pulumi-aws): dynamodb permissions for ddb to es lambda (#4533)
1 parent d23e98a commit a01bc2c

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

packages/pulumi-aws/src/apps/core/CoreElasticSearch.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,14 @@ function getDynamoDbToElasticLambdaPolicy(
296296
"es:ESHttpDelete",
297297
"es:ESHttpPatch",
298298
"es:ESHttpPost",
299-
"es:ESHttpPut"
299+
"es:ESHttpPut",
300+
"dynamodb:BatchGetItem",
301+
"dynamodb:BatchWriteItem",
302+
"dynamodb:PutItem",
303+
"dynamodb:GetItem",
304+
"dynamodb:DeleteItem",
305+
"dynamodb:Query",
306+
"dynamodb:UpdateItem"
300307
],
301308
Resource: [
302309
pulumi.interpolate`${domain.arn}`,

packages/pulumi-aws/src/apps/core/CoreOpenSearch.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,14 @@ function getDynamoDbToElasticLambdaPolicy(
309309
"es:ESHttpDelete",
310310
"es:ESHttpPatch",
311311
"es:ESHttpPost",
312-
"es:ESHttpPut"
312+
"es:ESHttpPut",
313+
"dynamodb:BatchGetItem",
314+
"dynamodb:BatchWriteItem",
315+
"dynamodb:PutItem",
316+
"dynamodb:GetItem",
317+
"dynamodb:DeleteItem",
318+
"dynamodb:Query",
319+
"dynamodb:UpdateItem"
313320
],
314321
Resource: [
315322
pulumi.interpolate`${domain.arn}`,

0 commit comments

Comments
 (0)