Skip to content

Instantly share code, notes, and snippets.

@kaperys
Last active November 9, 2018 14:46
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 kaperys/025120acfe89cb5ca05ac15927aaf1c9 to your computer and use it in GitHub Desktop.
Save kaperys/025120acfe89cb5ca05ac15927aaf1c9 to your computer and use it in GitHub Desktop.
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