-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.yml
31 lines (31 loc) · 848 Bytes
/
template.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
AWSTemplateFormatVersion: 2010-09-09
Transform: AWS::Serverless-2016-10-31
Description: Notifier with API Gateway & Lambda
Parameters:
TwitterAccessToken:
Type : String
TwitterAccessTokenSecret:
Type : String
TwitterConsumerKey:
Type : String
TwitterConsumerSecret:
Type : String
Resources:
ReleaseTweeter:
Type: AWS::Serverless::Function
Properties:
Handler: main
Runtime: go1.x
Tracing: Active
Events:
GetEvent:
Type: Api
Properties:
Path: /
Method: post
Environment:
Variables:
TWITTER_ACCESS_TOKEN: !Ref TwitterAccessToken
TWITTER_ACCESS_TOKEN_SECRET: !Ref TwitterAccessTokenSecret
TWITTER_CONSUMER_KEY: !Ref TwitterConsumerKey
TWITTER_CONSUMER_SECRET: !Ref TwitterConsumerSecret