Skip to content

Instantly share code, notes, and snippets.

@jugyo
Last active April 13, 2019 04:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jugyo/afe19338425385e415e8d18491bf5540 to your computer and use it in GitHub Desktop.
Save jugyo/afe19338425385e415e8d18491bf5540 to your computer and use it in GitHub Desktop.
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