Skip to content

Commit 71ec8bd

Browse files
committed
Placed sam template in a nested stack.
1 parent dda6c95 commit 71ec8bd

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

buildspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ phases:
77
- npm install --production
88
build:
99
commands:
10-
- aws cloudformation package --template-file sam-template.yaml --s3-bucket $S3_BUCKET --s3-prefix githubprchannels --output-template-file cloudformation/template.yaml
10+
- aws cloudformation package --template-file stackset-template-root.yaml --s3-bucket $S3_BUCKET --s3-prefix githubprchannels --output-template-file cloudformation/template.yaml
1111
artifacts:
1212
files:
1313
- cloudformation/template.yaml

stackset-template-root.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
AWSTemplateFormatVersion: 2010-09-09
2+
3+
Parameters:
4+
AppEnv:
5+
Type: String
6+
AllowedValues:
7+
- local
8+
- sandbox
9+
- stage
10+
- prod
11+
Description: Environment of this stack
12+
LogLevel:
13+
Type: String
14+
Default: error
15+
AllowedValues:
16+
- trace
17+
- debug
18+
- info
19+
- warn
20+
- error
21+
- fatal
22+
Description: Probot app log level
23+
24+
Resources:
25+
26+
NestedSAMTemplateStack:
27+
Type: AWS::CloudFormation::Stack
28+
Properties:
29+
TemplateURL: "sam-template.yaml"
30+
Parameters:
31+
AppEnv:
32+
Ref: AppEnv
33+
LogLevel:
34+
Ref: LogLevel

0 commit comments

Comments
 (0)