Skip to content

Commit bf640f3

Browse files
Add support for nested stack change set creation
1 parent 2b6f33f commit bf640f3

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/deploy.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ export async function deployStack(
152152
changeSetName: string,
153153
noEmptyChangeSet: boolean,
154154
noExecuteChangeSet: boolean,
155-
noDeleteFailedChangeSet: boolean
155+
noDeleteFailedChangeSet: boolean,
156+
includeNestedStacksChangeSet: boolean = false
156157
): Promise<string | undefined> {
157158
const stack = await getStack(cfn, params.StackName)
158159

@@ -202,6 +203,7 @@ export async function deployStack(
202203
RoleARN: params.RoleARN,
203204
RollbackConfiguration: params.RollbackConfiguration,
204205
NotificationARNs: params.NotificationARNs,
206+
IncludeNestedStacks: params.IncludeNestedStacks,
205207
Tags: params.Tags
206208
}
207209
},

src/main.ts

Lines changed: 6 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,9 @@ export async function run(): Promise<void> {
105106
required: false
106107
})
107108
)
109+
const includeNestedStacksChangeSet = !!+core.getInput('include-nested-stacks-change-set', {
110+
required: false
111+
})
108112

109113
// Configures proxy
110114
const agent = configureProxy(httpProxy)
@@ -148,7 +152,8 @@ export async function run(): Promise<void> {
148152
TemplateBody: templateBody,
149153
TemplateURL: templateUrl,
150154
Tags: tags,
151-
EnableTerminationProtection: terminationProtections
155+
EnableTerminationProtection: terminationProtections,
156+
IncludeNestedStacksChangeSet: includeNestedStacksChangeSet
152157
}
153158

154159
if (parameterOverrides) {

0 commit comments

Comments
 (0)