-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.yaml
32 lines (27 loc) · 867 Bytes
/
template.yaml
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
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: AWS SAM Nested Applications
Resources:
#
# Using lambda runtime nodejs18.x
# Using aws-sdk v3
#
StackDynamodb:
Type: AWS::Serverless::Application
Properties:
Location: apps/dynamodb/template.yaml
#
# Using lambda runtime nodejs16.x
# Using aws-sdk v2
#
StackRestApi:
Type: AWS::Serverless::Application
Properties:
Location: apps/rest-api/template.yaml
Parameters:
TableCategoriesArn: !GetAtt StackDynamodb.Outputs.TableCategoriesArn
TableCategoriesName: !GetAtt StackDynamodb.Outputs.TableCategoriesName
Outputs:
RestApiUrl:
Description: 'API Gateway endpoint URL'
Value: !GetAtt StackRestApi.Outputs.RestApiUrl