Skip to content

Commit 9280853

Browse files
committed
Add the permissions back in and hope
1 parent 86c88d9 commit 9280853

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

serverless.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -168,22 +168,22 @@ resources:
168168
MessageRetentionPeriod: 86400 # 1 day, adjust as needed
169169

170170
# Apparently this is explicitly needed (which makes no sense to me, but there it is)
171-
# ConnectLambdaPermission:
172-
# Type: AWS::Lambda::Permission
173-
# Properties:
174-
# FunctionName: ${self:service}-${self:provider.stage}-connect
175-
# Action: lambda:InvokeFunction
176-
# Principal: apigateway.amazonaws.com
177-
# SourceArn:
178-
# Fn::Sub: arn:aws:execute-api:${AWS::Region}:${AWS::AccountId}:${WebsocketsApi}/${self:provider.stage}/*/$connect
179-
# DisconnectLambdaPermission:
180-
# Type: AWS::Lambda::Permission
181-
# Properties:
182-
# FunctionName: ${self:service}-${self:provider.stage}-disconnect
183-
# Action: lambda:InvokeFunction
184-
# Principal: apigateway.amazonaws.com
185-
# SourceArn:
186-
# Fn::Sub: arn:aws:execute-api:${AWS::Region}:${AWS::AccountId}:${WebsocketsApi}/${self:provider.stage}/*/$disconnect
171+
ConnectLambdaPermission:
172+
Type: AWS::Lambda::Permission
173+
Properties:
174+
FunctionName: ${self:service}-${self:provider.stage}-connect
175+
Action: lambda:InvokeFunction
176+
Principal: apigateway.amazonaws.com
177+
SourceArn:
178+
Fn::Sub: arn:aws:execute-api:${AWS::Region}:${AWS::AccountId}:${WebsocketsApi}/${self:provider.stage}/*/$connect
179+
DisconnectLambdaPermission:
180+
Type: AWS::Lambda::Permission
181+
Properties:
182+
FunctionName: ${self:service}-${self:provider.stage}-disconnect
183+
Action: lambda:InvokeFunction
184+
Principal: apigateway.amazonaws.com
185+
SourceArn:
186+
Fn::Sub: arn:aws:execute-api:${AWS::Region}:${AWS::AccountId}:${WebsocketsApi}/${self:provider.stage}/*/$disconnect
187187

188188
# for autodeployments
189189
# WebsocketsDeployment:

0 commit comments

Comments
 (0)