-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless-compose.yml
62 lines (56 loc) · 2.34 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
services:
api-gateway:
path: ./services/api-gateway
params:
ResourcePrefix: ajp-${sls:stage}
fe-distribution:
path: ./services/fe-distribution
params:
ResourcePrefix: ajp-${sls:stage}
auth:
path: ./services/authorization
params:
ApiGatewayRestApiId: ${api-gateway.ApiGatewayRestApiId}
ApiGatewayRestApiRootResourceId: ${api-gateway.ApiGatewayRestApiRootResourceId}
fixtures:
path: ./services/fixtures
params:
ResourcePrefix: ajp-${sls:stage}
WebAppDistributionDomain: ${fe-distribution.WebAppDistributionDomain}
WebAppCustomDomain: ${fe-distribution.WebAppCustomDomain}
products-api:
path: ./services/products-api
params:
ResourcePrefix: ajp-${sls:stage}
FixturesS3BucketName: ${fixtures.FixturesS3BucketName}
ApiGatewayRestApiId: ${api-gateway.ApiGatewayRestApiId}
ApiGatewayRestApiRootResourceId: ${api-gateway.ApiGatewayRestApiRootResourceId}
WebAppDistributionDomain: ${fe-distribution.WebAppDistributionDomain}
WebAppCustomDomain: ${fe-distribution.WebAppCustomDomain}
HostedZoneDomain: ${fe-distribution.HostedZoneDomain}
products-import:
path: ./services/products-import
params:
ResourcePrefix: ajp-${sls:stage}
FixturesS3BucketName: ${fixtures.FixturesS3BucketName}
ApiGatewayRestApiId: ${api-gateway.ApiGatewayRestApiId}
ApiGatewayRestApiRootResourceId: ${api-gateway.ApiGatewayRestApiRootResourceId}
WebAppDistributionDomain: ${fe-distribution.WebAppDistributionDomain}
WebAppCustomDomain: ${fe-distribution.WebAppCustomDomain}
ImportedProductsQueue: ${products-api.ImportedProductsQueue}
ImportedProductsQueueUrl: ${products-api.ImportedProductsQueueUrl}
BasicAuthorizerId: ${auth.BasicAuthorizerId}
shop-frontend-app:
path: ./services/shop-frontend-app
dependsOn:
- api-gateway
- fe-distribution
- products-api
- products-import
params:
ApiGatewayRestApiId: ${api-gateway.ApiGatewayRestApiId}
ProductsApiServiceEndpoint: ${api-gateway.ApiGatewayRestApiEndpoint}
WebAppS3BucketName: ${fe-distribution.WebAppS3BucketName}
WebAppDistributionId: ${fe-distribution.WebAppDistributionId}
WebAppDistributionDomain: ${fe-distribution.WebAppDistributionDomain}
WebAppCustomDomain: ${fe-distribution.WebAppCustomDomain}