This repository was archived by the owner on Oct 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathDeploy.yml
More file actions
83 lines (71 loc) · 2.15 KB
/
Deploy.yml
File metadata and controls
83 lines (71 loc) · 2.15 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
Name: AdventureBot
Version: 1.0
Description: Alexa-based Choose-your-AdventureBot
Parameters:
- Name: AdventureFile
Description: Name of the adventure file to use
Value: my-demo-adventure.yml
- Name: AdventureBucket
Description: S3 Bucket for storing adventure assets
Resource:
Type: AWS::S3::Bucket
Allow: ReadWrite
- Name: AdventureFinishedTopic
Description: SNS topic to notify when a player finishes an adventure
Resource:
Type: AWS::SNS::Topic
Allow: Publish
- Name: AdventureFiles
Description: Package of all adventures files to be uploaded to S3 bucket
Package:
Files: assets/adventures/
Bucket: AdventureBucket
Prefix: Adventures/
- Name: SoundFiles
Description: Package of all sound files to be uploaded to S3 bucket
Package:
Files: assets/sounds/*.mp3
Bucket: AdventureBucket
Prefix: Sounds/
- Name: SoundFilesPolicy
Description: Access policy for sound files in S3 bucket
Resource:
Type: AWS::S3::BucketPolicy
Properties:
Bucket:
Ref: AdventureBucket
PolicyDocument:
Statement:
- Action:
- "s3:GetObject"
Effect: Allow
Resource:
Fn::Join:
- ""
- - "arn:aws:s3:::"
- Ref: AdventureBucket
- "/Sounds/*"
Principal: "*"
- Name: PlayerTable
Description: DynamoDb table for storing player progression in their adventure
Resource:
Type: AWS::DynamoDB::Table
Allow: ReadWrite
Properties:
AttributeDefinitions:
- AttributeName: PlayerId
AttributeType: S
KeySchema:
- AttributeName: PlayerId
KeyType: HASH
ProvisionedThroughput:
ReadCapacityUnits: 1
WriteCapacityUnits: 1
Functions:
- Name: Alexa
Memory: 128
Timeout: 30
Sources:
# NOTE: Specify your alexa skill id (e.g. amzn1.ask.skill.xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)
# to prevent the Lambda function from being invoked by other skills.
- Alexa: "*"