-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.yaml
32 lines (32 loc) · 1 KB
/
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
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Resources:
AlexaHandler:
Type: AWS::Serverless::Function
Properties:
FunctionName: !Sub ${AWS::StackName}-AlexaHandler
Description: !Sub
- Stack ${StackTagName} Environment ${EnvironmentTagName} Function ${ResourceName}
- ResourceName: AlexaHandler
CodeUri: src/AlexaHandler
Handler: index.handler
Runtime: nodejs12.x
MemorySize: 3008
Timeout: 30
Tracing: Active
Policies:
- AWSXrayWriteOnlyAccess
Events:
AlexaSkillEvent:
Type: AlexaSkill
SkillId: !Ref alexaReinventSkillId
Parameters:
alexaReinventSkillId:
Type: AWS::SSM::Parameter::Value<String>
Default: /<EnvironmentName>/alexaReinventSkillId
StackTagName:
Type: String
Description: Stack Name (injected by Stackery at deployment time)
EnvironmentTagName:
Type: String
Description: Environment Name (injected by Stackery at deployment time)