Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cli): cdk deploy cannot update stacks in REVIEW_IN_PROGRESS status (
#7731) Stacks only end up in `REVIEW_IN_PROGRESS` state when they have never been deployed by executing a changeset. It exists, but has no resources or a template. Users can end up in this state if a changeset takes too long to deploy or if the `--no-execute` flag is used the first time a stack is deployed. There are likely other scenarios. If a `cdk deploy` bails and a changeset finishes creation but does not get executed, a stack will have `REVIEW_IN_PROGRESS` as its status Root cause: We're trying to `update` a stack that was never deployed. CloudFormation considers a stack ID with no template or resources to be a stack that does not exist. When we try to set the `ChangeSetType` to `UPDATE`, it results in a `ValidationException` from CloudFormation Fix: When a stack is in `REVIEW_IN_PROGRESS` state, ensure we set the `ChangeSetType` to `CREATE` Closes #6674
- Loading branch information