diff --git a/src/deploy.ts b/src/deploy.ts index 0eacbf6..af98f7d 100644 --- a/src/deploy.ts +++ b/src/deploy.ts @@ -202,6 +202,7 @@ export async function deployStack( RoleARN: params.RoleARN, RollbackConfiguration: params.RollbackConfiguration, NotificationARNs: params.NotificationARNs, + IncludeNestedStacks: params.IncludeNestedStacksChangeSet, Tags: params.Tags } }, diff --git a/src/main.ts b/src/main.ts index 45109c9..c33216b 100644 --- a/src/main.ts +++ b/src/main.ts @@ -22,6 +22,7 @@ import { NodeHttpHandler } from '@smithy/node-http-handler' // Validated by core.getInput() which throws if not set export type CreateStackInputWithName = CreateStackCommandInput & { StackName: string + IncludeNestedStacksChangeSet?: boolean } export type CreateChangeSetInput = CreateChangeSetCommandInput @@ -105,6 +106,12 @@ export async function run(): Promise { required: false }) ) + const includeNestedStacksChangeSet = !!+core.getInput( + 'include-nested-stacks-change-set', + { + required: false + } + ) // Configures proxy const agent = configureProxy(httpProxy) @@ -148,7 +155,8 @@ export async function run(): Promise { TemplateBody: templateBody, TemplateURL: templateUrl, Tags: tags, - EnableTerminationProtection: terminationProtections + EnableTerminationProtection: terminationProtections, + IncludeNestedStacksChangeSet: includeNestedStacksChangeSet } if (parameterOverrides) {