Skip to content

Instantly share code, notes, and snippets.

@nidhi-canopas
Created September 22, 2022 07:25
Show Gist options
  • Select an option

  • Save nidhi-canopas/a8b77a151532f82fc025afc2f2f22916 to your computer and use it in GitHub Desktop.

Select an option

Save nidhi-canopas/a8b77a151532f82fc025afc2f2f22916 to your computer and use it in GitHub Desktop.
Resources:
ApiGatewayResourceProxyMethod:
Type: AWS::ApiGateway::Method
DependsOn:
- ApiGatewayRootResource
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: !Ref ApiGatewayRootResource
RestApiId: !Ref ApiGateway
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment