Skip to content

Commit

Permalink
Allow fastAPI lambda to update items
Browse files Browse the repository at this point in the history
  • Loading branch information
fulder committed Oct 30, 2021
1 parent 3594d20 commit e283043
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deploy/lib/watch_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ def _create_lambdas_config(self):
f"{self.watch_history_table.table_arn}/index/*",
]
),
PolicyStatement(
actions=["dynamodb:UpdateItem"],
resources=[self.watch_history_table.table_arn],
),
],
"timeout": 60
},
Expand Down

0 comments on commit e283043

Please sign in to comment.