Skip to content

Instantly share code, notes, and snippets.

@kaperys kaperys/template.yml

Last active Nov 9, 2018
Embed
What would you like to do?
Emoji Lambda function SAM template
AWSTemplateFormatVersion : '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: Emoji Service
Resources:
SearchEmojis:
Type: AWS::Serverless::Function
Properties:
Runtime: go1.x
Handler: handler
Environment:
Variables:
SOURCE_URL: https://raw.githubusercontent.com/github/gemoji/master/db/emoji.json
Events:
RootHandler:
Type: Api
Properties:
Path: '/'
Method: get
Outputs:
Endpoint:
Value: !Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.