Created
March 2, 2023 01:21
-
-
Save metaskills/c461763cad8e055cdde175fea76bbbfd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DefaultWSLambda: | |
Type: AWS::Serverless::Function | |
Properties: | |
Handler: index.handler | |
CodeUri: "/var/task/src/ws/default" | |
Runtime: nodejs16.x | |
DefaultWSRoute: | |
Type: AWS::ApiGatewayV2::Route | |
Properties: | |
ApiId: | |
Ref: WS | |
RouteKey: "$default" | |
OperationName: DefaultWSRoute | |
Target: | |
Fn::Join: | |
- "/" | |
- - integrations | |
- Ref: DefaultWSIntegration | |
DefaultWSIntegration: | |
Type: AWS::ApiGatewayV2::Integration | |
Properties: | |
ApiId: | |
Ref: WS | |
IntegrationType: AWS_PROXY | |
IntegrationUri: | |
Fn::Sub: | |
- arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${DefaultWSLambda.Arn}/invocations | |
- {} | |
DefaultWSPermission: | |
Type: AWS::Lambda::Permission | |
DependsOn: | |
- WS | |
- DefaultWSLambda | |
Properties: | |
Action: lambda:InvokeFunction | |
FunctionName: | |
Ref: DefaultWSLambda | |
Principal: apigateway.amazonaws.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment