Skip to content

Instantly share code, notes, and snippets.

@nidhi-canopas
Created September 22, 2022 07:20
Show Gist options
  • Save nidhi-canopas/73f2599ff5e3796eb36b4828d6ce1a68 to your computer and use it in GitHub Desktop.
Save nidhi-canopas/73f2599ff5e3796eb36b4828d6ce1a68 to your computer and use it in GitHub Desktop.
Resources:
ApiGatewayRootMethod:
Type: AWS::ApiGateway::Method
Properties:
AuthorizationType: NONE
HttpMethod: ANY
Integration:
IntegrationHttpMethod: POST
Type: AWS_PROXY
Uri: !Sub
- arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${lambdaArn}/invocations
- lambdaArn: !GetAtt LambdaFunction.Arn
ResourceId: !GetAtt ApiGateway.RootResourceId
RestApiId: !Ref ApiGateway
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment