Skip to content

Commit b6495db

Browse files
authored
feautre: remove extra permissions from DB dal (#897)
1 parent 3b01fde commit b6495db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cdk/service/api_construct.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def _build_lambda_role(self, db: dynamodb.TableV2, idempotency_table: dynamodb.T
7676
'dynamodb_db': iam.PolicyDocument(
7777
statements=[
7878
iam.PolicyStatement(
79-
actions=['dynamodb:PutItem', 'dynamodb:GetItem'],
79+
actions=['dynamodb:PutItem'],
8080
resources=[db.table_arn],
8181
effect=iam.Effect.ALLOW,
8282
)

0 commit comments

Comments
 (0)