Skip to content

Instantly share code, notes, and snippets.

@piyushjaware
Created April 16, 2019 20:09
Show Gist options
  • Save piyushjaware/3dc45fa4e380ced02ee82cc380ca18ea to your computer and use it in GitHub Desktop.
Save piyushjaware/3dc45fa4e380ced02ee82cc380ca18ea to your computer and use it in GitHub Desktop.
MyApi:
Type: 'AWS::Serverless::Api'
Properties:
StageName: '<stage name>'
DefinitionBody:
swagger: '2.0'
info:
title: '<title>'
paths:
/<somepath>:
<method>:
x-amazon-apigateway-integration:
type: AWS
requestParameters:
integration.request.header.X-Amz-Invocation-Type: '''Event'''
httpMethod: <method>
uri: '<lambda uri>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment