Skip to content

Instantly share code, notes, and snippets.

@jugyo
Last active Apr 13, 2019
Embed
What would you like to do?
AWSTemplateFormatVersion : '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: An example SAM template for Lambda Safe Deployments.
Globals:
Api:
BinaryMediaTypes:
- '*/*'
Resources:
api:
Type: AWS::Serverless::Api
Properties:
StageName: Prod
f1:
Type: AWS::Serverless::Function
Properties:
Handler: app.handler
Runtime: nodejs8.10
AutoPublishAlias: live
MemorySize: 512
Timeout: 20
Events:
Api:
Type: Api
Properties:
RestApiId: !Ref api
Path: /
Method: ANY
ApiProxy:
Type: Api
Properties:
RestApiId: !Ref api
Path: /{proxy+}
Method: ANY
Outputs:
RestApiId:
Value: !Ref api
Export:
Name: AppRestApiId
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment