aws / aws/aws-cli

cloudformation create-change-set doesn't respect "no-include-nested-stacks"

Open
#6,949 9 comments 0 reactions 0 assignees View on GitHub
bug cloudformation package-deploy customization p3
Dominant language
Python
Stars
17.3k
Forks
4.6k
Avg merge
1d 2h
Merged PRs (30d)
13

Description

### Describe the bug

When a change set is created using the "--no-include-nested-stacks" parameter, this is not being respected and the nested stack is being updated.

### Expected Behavior

I expected "--no-include-nested-stacks" to exclude nested stacks from update during execution of the change set.

### Current Behavior

Child nested stacks are being updated during change set execution.

### Reproduction Steps

[repro.zip](https://github.com/aws/aws-cli/files/8695521/repro.zip)

(Templates in attached zip)
```bash
aws cloudformation package \
--template-file parent.yaml \
--s3-bucket use-your-own-packaged-bucket-target-here \
--output-template-file parent-pkg.yaml \
--force-upload

aws cloudformation deploy \
--template-file parent-pkg.yaml \
--stack-name nest-test \
--parameter-overrides file://params.json

aws cloudformation create-change-set \
--stack-name nest-test \
--template-body file://parent-pkg.yaml \
--parameters file://params_update.json \
--change-set-name parent-only \
--no-include-nested-stacks
```

NOTE: Behavior is the same if the "--no-include-nested-stacks" flag is left out

### Possible Solution

_No response_

### Additional Information/Context

_No response_

### CLI version used

aws-cli/2.7.0 Python/3.9.12 Darwin/20.6.0 source/arm64 prompt/off

### Environment details (OS name and version, etc.)

macOS 11.6.5

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.