-
Notifications
You must be signed in to change notification settings - Fork 0
/
yelp-alexa-sam.yaml
49 lines (48 loc) · 2.29 KB
/
yelp-alexa-sam.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
AWSTemplateFormatVersion: 2010-09-09
Transform:
- AWS::Serverless-2016-10-31
Resources:
LambdaTrustRole:
Description: Creating service role in IAM for AWS Lambda
Properties:
AssumeRolePolicyDocument:
Statement:
- Action: sts:AssumeRole
Effect: Allow
Principal:
Service:
- lambda.amazonaws.com
ManagedPolicyArns:
- arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole
Path: "/"
Policies:
- PolicyDocument:
Statement:
- Action:
- logs:CreateLogGroup
- logs:CreateLogStream
- logs:PutLogEvents
Effect: Allow
Resource: "*"
Version: '2012-10-17'
PolicyName: MyLambdaWorkerPolicy
RoleName: !Ref AWS::StackName
Type: AWS::IAM::Role
AlexaSkillFunction:
Type: AWS::Serverless::Function
Properties:
Handler: target/index.handler
Runtime: nodejs8.10
Role:
Fn::GetAtt:
- LambdaTrustRole
- Arn
Events:
AlexaSkillEvent:
Type: AlexaSkill
Environment:
Variables:
yelp_key : AQICAHiVLf62VSQeys4m+m8f7GxspQFe7OUuG1GIrIdC98HyQwH5FLMuA/Dv1RslIf10oFEeAAAA4zCB4AYJKoZIhvcNAQcGoIHSMIHPAgEAMIHJBgkqhkiG9w0BBwEwHgYJYIZIAWUDBAEuMBEEDML8wM81sf68nmbqWQIBEICBmy7ncM9rJFKhGiPYiEUHmhku7NHFQ7/KZlptDBWdn7mFW3Ffhe5/pCLPrWEsOw+sIgZTsXZIYyNdRsCh2Ei/wIDrHU5YmP67NDBDwIeIx5f19oWlpw2F+6uBLGBqDr+eBnp9gFEp3Z9bY5DXvtfP4G+YW7+VK6Y2TloebUhRRz5L34aH3LFboKFCIeb7AASBepaJwBBlIsKnghJq
db_user :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