Skip to content

Commit d1e7b9e

Browse files
authored
Merge pull request #156 from venkateswarluvajrala/nested-stack-changeset
Add support for nested stack change set creation
2 parents 92959f7 + 3bf97f1 commit d1e7b9e

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/deploy.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ export async function deployStack(
202202
RoleARN: params.RoleARN,
203203
RollbackConfiguration: params.RollbackConfiguration,
204204
NotificationARNs: params.NotificationARNs,
205+
IncludeNestedStacks: params.IncludeNestedStacksChangeSet,
205206
Tags: params.Tags
206207
}
207208
},

src/main.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import { NodeHttpHandler } from '@smithy/node-http-handler'
2222
// Validated by core.getInput() which throws if not set
2323
export type CreateStackInputWithName = CreateStackCommandInput & {
2424
StackName: string
25+
IncludeNestedStacksChangeSet?: boolean
2526
}
2627

2728
export type CreateChangeSetInput = CreateChangeSetCommandInput
@@ -105,6 +106,12 @@ export async function run(): Promise<void> {
105106
required: false
106107
})
107108
)
109+
const includeNestedStacksChangeSet = !!+core.getInput(
110+
'include-nested-stacks-change-set',
111+
{
112+
required: false
113+
}
114+
)
108115

109116
// Configures proxy
110117
const agent = configureProxy(httpProxy)
@@ -148,7 +155,8 @@ export async function run(): Promise<void> {
148155
TemplateBody: templateBody,
149156
TemplateURL: templateUrl,
150157
Tags: tags,
151-
EnableTerminationProtection: terminationProtections
158+
EnableTerminationProtection: terminationProtections,
159+
IncludeNestedStacksChangeSet: includeNestedStacksChangeSet
152160
}
153161

154162
if (parameterOverrides) {

0 commit comments

Comments
 (0)