-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.yml
35 lines (33 loc) · 1.06 KB
/
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
32
33
34
35
AWSTemplateFormatVersion: '2010-09-09'
Transform: 'AWS::Serverless-2016-10-31'
Description: SAM Test
Mappings:
Variables:
AlexaSkillKit:
Id: '{{resolve:ssm:/grundgetta/ALEXA_SKILL_KIT_ID:1}}'
Resources:
FunctionGrundgetta:
Type: AWS::Serverless::Function
Properties:
FunctionName: grundgetta-alexa-skill
Handler: index.handler
CodeUri: ./build
Role: arn:aws:iam::714553042416:role/grundgetta
Runtime: nodejs10.x
MemorySize: 128
Timeout: 9
Environment:
Variables:
GEOCLIENT_API_ID: '{{resolve:ssm:/grundgetta/GEOCLIENT_API_ID:1}}'
GEOCLIENT_APP_KEY: '{{resolve:ssm:/grundgetta/GEOCLIENT_APP_KEY:1}}'
FunctionGrundgettaAskPermission:
Type: AWS::Lambda::Permission
DependsOn: FunctionGrundgetta
Properties:
Action: lambda:InvokeFunction
EventSourceToken: !FindInMap
- Variables
- AlexaSkillKit
- Id
FunctionName: !GetAtt FunctionGrundgetta.Arn
Principal: alexa-appkit.amazon.com