-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.yaml
34 lines (34 loc) · 952 Bytes
/
template.yaml
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
32
33
34
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: Amazon Lambda Backed API Gateway Backend for an IFTTT WebHook into your AWS account
Parameters:
APIKey:
Description: An API Key to provide a very loose trust mechanism for IFTTT to call into your AWS Account.
Type: String
Outputs:
WebHookURL:
Description: URL of your API endpoint
Value: !Join
- ''
- - https://
- !Ref ServerlessRestApi
- '.execute-api.'
- !Ref 'AWS::Region'
- '.amazonaws.com/Prod?API_KEY='
- !Ref APIKey
Resources:
LambdaFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: ./build/webhook.zip
Handler: webhook.handler
Runtime: nodejs6.10
Environment:
Variables:
API_KEY: !Ref APIKey
Events:
ProxyApiRoot:
Type: Api
Properties:
Path: /
Method: ANY