Skip to content

Commit

Permalink
Grant the WS handlers RW access to the Table
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasnaphas committed Mar 19, 2022
1 parent 0ce5876 commit f8ac33c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/madliberation-webapp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,9 @@ export class MadliberationWebapp extends Stack {
const connectHandler = makeWSHandler("Connect");
const disconnectHandler = makeWSHandler("Disconnet");
const defaultHandler = makeWSHandler("Default");
[connectHandler, disconnectHandler, defaultHandler].forEach((handler) => {
sedersTable.grantReadWriteData(handler);
});
const webSocketApi = new apigwv2.WebSocketApi(this, "WSAPI", {
connectRouteOptions: {
integration: new apigwv2i.WebSocketLambdaIntegration(
Expand Down

0 comments on commit f8ac33c

Please sign in to comment.