Skip to content

Commit

Permalink
feautre: remove extra permissions from DB dal (#897)
Browse files Browse the repository at this point in the history
  • Loading branch information
ran-isenberg authored Nov 10, 2024
1 parent 3b01fde commit b6495db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cdk/service/api_construct.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def _build_lambda_role(self, db: dynamodb.TableV2, idempotency_table: dynamodb.T
'dynamodb_db': iam.PolicyDocument(
statements=[
iam.PolicyStatement(
actions=['dynamodb:PutItem', 'dynamodb:GetItem'],
actions=['dynamodb:PutItem'],
resources=[db.table_arn],
effect=iam.Effect.ALLOW,
)
Expand Down

0 comments on commit b6495db

Please sign in to comment.