Last active
November 9, 2018 14:46
-
-
Save kaperys/025120acfe89cb5ca05ac15927aaf1c9 to your computer and use it in GitHub Desktop.
Emoji Lambda function SAM template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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