-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathModule.yml
More file actions
130 lines (105 loc) · 3.13 KB
/
Module.yml
File metadata and controls
130 lines (105 loc) · 3.13 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# The Module Name is used as prefix for all contained resources.
Module: My.TimeStone
# The Module Version is shown in the CloudFormation stack and Lambda function descriptions.
Version: 1.0-DEV
# The Module Description is shown in the AWS CloudFormation console with the version number.
Description: Module description
Using:
- Module: LambdaSharp.S3.IO:0.5
# The Items section defines values and resources for the module.
Items:
- Function: Gateway
Description: TO-DO - update function description
Memory: 256
Timeout: 30
Sources:
- Api: GET:/items
Invoke: GetItems
- Api: POST:/items
Invoke: AddItems
- Api: GET:/grave
Invoke: GetGrave
- Api: POST:/grave
Invoke: AddGrave
- Api: GET:/clear
Invoke: Clear
- Resource: WebsiteBucket
Description: S3 bucket for hosting website assets
Type: AWS::S3::Bucket
Allow: Full
Scope: "*"
Properties:
WebsiteConfiguration:
ErrorDocument: error/index.html
IndexDocument: index.html
- Resource: WebsiteBucketPolicy
Description: Public access policy
Type: AWS::S3::BucketPolicy
Properties:
PolicyDocument:
Id: WebsiteBucket
Version: 2012-10-17
Statement:
- Sid: PublicReadForGetBucketObjects
Effect: Allow
Principal: '*'
Action: s3:GetObject
Resource: !Sub "${WebsiteBucket.Arn}/*"
Bucket: !Ref WebsiteBucket
DependsOn: DeployWebsiteFiles
- Package: WebsiteFiles
Description: Website files to deploy
Files: wwwroot/
- Resource: DeployWebsiteFiles
Type: LambdaSharp::S3::Unzip
Properties:
SourceBucket: !Ref DeploymentBucketName
SourceKey: !Ref WebsiteFiles
DestinationBucket: !Ref WebsiteBucket
DestinationKey: ""
# Export website url
- Variable: WebsiteUrl
Description: Website URL
Scope: public
Value: !GetAtt WebsiteBucket.WebsiteURL
# Export website url
- Variable: APIGatewayUrl
Description: API Gateway URL
Scope: public
Value: !Ref Module::RestApi::Url
- Function: ThanosThreaten
Description: TO-DO - update function description
Memory: 256
Timeout: 30
- Function: ThanosGetBattlefieldStatus
Description: TO-DO - update function description
Memory: 256
Timeout: 30
- Function: ThanosCheckDamageStatus
Description: TO-DO - update function description
Memory: 256
Timeout: 30
- Function: ThanosGameOver
Description: TO-DO - update function description
Memory: 256
Timeout: 30
- Function: GameLogic
Description: TO-DO - update function description
Memory: 256
Timeout: 30
- Function: AvengersGetBattlefieldStatus
Description: TO-DO - update function description
Memory: 256
Timeout: 30
- Function: AvengersRecruitAndSubmit
Description: TO-DO - update function description
Memory: 256
Timeout: 120
- Function: ThanosKill
Description: TO-DO - update function description
Memory: 256
Timeout: 30
- Function: ThanosFight
Description: TO-DO - update function description
Memory: 256
Timeout: 30