-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathserverless-compose.yml
81 lines (76 loc) · 3.33 KB
/
serverless-compose.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
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
services:
# wave 1: no dependencies
database:
path: services/database
stream-functions:
path: services/stream-functions
ui-waflog-s3-bucket:
path: services/ui-waflog-s3-bucket
# depends on ui-waflog-s3-bucket
ui:
path: services/ui
params:
WaflogsUploadBucketArn: ${ui-waflog-s3-bucket.WaflogsUploadBucketArn}
# depends on ui
ui-waf-log-assoc:
path: services/ui-waf-log-assoc
params:
CloudFrontWebAclArn: ${ui.CloudFrontWebAclArn}
FirehoseArn: ${ui.FirehoseArn}
# depends on database
app-api:
path: services/app-api
params:
AgeRangesTableName: ${database.AgeRangesTableName}
AgeRangesTableArn: ${database.AgeRangesTableArn}
AgeRangesTableStreamArn: ${database.AgeRangesTableStreamArn}
FormAnswersTableName: ${database.FormAnswersTableName}
FormAnswersTableArn: ${database.FormAnswersTableArn}
FormAnswersTableStreamArn: ${database.FormAnswersTableStreamArn}
FormQuestionsTableName: ${database.FormQuestionsTableName}
FormQuestionsTableArn: ${database.FormQuestionsTableArn}
FormQuestionsTableStreamArn: ${database.FormQuestionsTableStreamArn}
FormsTableName: ${database.FormsTableName}
FormsTableArn: ${database.FormsTableArn}
FormsTableStreamArn: ${database.FormsTableStreamArn}
FormTemplatesTableName: ${database.FormTemplatesTableName}
FormTemplatesTableArn: ${database.FormTemplatesTableArn}
FormTemplatesTableStreamArn: ${database.FormTemplatesTableStreamArn}
StateFormsTableName: ${database.StateFormsTableName}
StateFormsTableArn: ${database.StateFormsTableArn}
StateTableStreamArn: ${database.StateTableStreamArn}
StatesTableName: ${database.StatesTableName}
StatesTableArn: ${database.StatesTableArn}
StatusTableName: ${database.StatusTableName}
StatusTableArn: ${database.StatusTableArn}
StatusTableStreamArn: ${database.StatusTableStreamArn}
AuthUserTableName: ${database.AuthUserTableName}
AuthUserTableArn: ${database.AuthUserTableArn}
AuthUserTableStreamArn: ${database.AuthUserTableStreamArn}
AuthUserRolesTableName: ${database.AuthUserRolesTableName}
AuthUserRolesTableArn: ${database.AuthUserRolesTableArn}
AuthUserStatesTableName: ${database.AuthUserStatesTableName}
AuthUserStatesTableArn: ${database.AuthUserStatesTableArn}
AuthUserStatesTableStreamArn: ${database.AuthUserStatesTableStreamArn}
StateFormsTableStreamArn: ${database.StateFormsTableStreamArn}
AuthUserRolesTableStreamArn: ${database.AuthUserRolesTableStreamArn}
# depends on app-api and ui
ui-auth:
path: services/ui-auth
params:
ApiGatewayRestApiName: ${app-api.ApiGatewayRestApiName}
ApplicationEndpointUrl: ${ui.ApplicationEndpointUrl}
# depends on app-api, ui, and ui-auth
ui-src:
path: services/ui-src
params:
ApiRegion: ${app-api.Region}
ApiGatewayRestApiUrl: ${app-api.ApiGatewayRestApiUrl}
CognitoRegion: ${ui-auth.Region}
IdentityPoolId: ${ui-auth.IdentityPoolId}
UserPoolId: ${ui-auth.UserPoolId}
UserPoolClientId: ${ui-auth.UserPoolClientId}
UserPoolClientDomain: ${ui-auth.UserPoolClientDomain}
S3BucketName: ${ui.S3BucketName}
CloudFrontDistributionId: ${ui.CloudFrontDistributionId}
ApplicationEndpointUrl: ${ui.ApplicationEndpointUrl}