forked from Enterprise-CMCS/macpro-mdct-mcr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless-compose.yml
53 lines (50 loc) · 1.96 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
services:
# wave 1: no dependencies
database:
path: services/database
topics:
path: services/topics
ui:
path: services/ui
uploads:
path: services/uploads
# wave 2: depends on database
app-api:
path: services/app-api
params:
BannerTableName: ${database.BannerTableName}
McparReportTableName: ${database.McparReportTableName}
McparReportTableStreamArn: ${database.McparReportTableStreamArn}
MlrReportTableName: ${database.MlrReportTableName}
FormTemplateTableName: ${database.FormTemplateTableName}
MlrReportTableStreamArn: ${database.MlrReportTableStreamArn}
NaaarReportTableName: ${database.NaaarReportTableName}
NaaarReportTableStreamArn: ${database.NaaarReportTableStreamArn}
AttachmentsBucketName: ${uploads.AttachmentsBucketName}
McparFormBucketName: ${database.McparFormBucketName}
MlrFormBucketName: ${database.MlrFormBucketName}
NaaarFormBucketName: ${database.NaaarFormBucketName}
# wave 3: depends on many
ui-auth:
path: services/ui-auth
params:
AttachmentsBucketArn: ${uploads.AttachmentsBucketArn}
ApiGatewayRestApiName: ${app-api.ApiGatewayRestApiName}
ApplicationEndpointUrl: ${ui.ApplicationEndpointUrl}
# wave 4: depends on most
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}
IdentityProvider: ${ui-auth.IdentityProvider}
AttachmentsBucketRegion: ${uploads.Region}
AttachmentsBucketName: ${uploads.AttachmentsBucketName}
S3BucketName: ${ui.S3BucketName}
CloudFrontDistributionId: ${ui.CloudFrontDistributionId}
ApplicationEndpointUrl: ${ui.ApplicationEndpointUrl}