Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updating aws_cdk.core.Stack id leaves previous CF stack deployed/behind #14911

Closed
gliptak opened this issue May 28, 2021 · 3 comments
Closed
Assignees
Labels
@aws-cdk/core Related to core CDK functionality bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.

Comments

@gliptak
Copy link

gliptak commented May 28, 2021

updating aws_cdk.core.Stack id leaves previous CF stack deployed/behind

Reproduction Steps

cdk init app --language python
source .venv/bin/activate
python -m pip install -r requirements.txt
cdk deploy

At this point AppStack is deployed.

Update

app = core.App()
AppStack(app, "AppStack")

to

app = core.App()
AppStack(app, "company-AppStack")

and run

cdk deploy

What did you expect to happen?

After creating new CF stack, old CF stack removed.

What actually happened?

There are now two CFs deployed, both old and new one, Running cdk destroy only deletes the new CF stack leaving old CF behind.

Environment

  • CDK CLI Version : 1.105.0 (build 4813992)
  • Framework Version: 1.105.0
  • Node.js Version: v14.16.1
  • OS : Linux
  • Language (Version): Python (3.8.10)

Other

https://docs.aws.amazon.com/cdk/api/latest/python/aws_cdk.core/Stack.html

#9662
#4733


This is 🐛 Bug Report

@gliptak gliptak added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels May 28, 2021
@github-actions github-actions bot added the @aws-cdk/core Related to core CDK functionality label May 28, 2021
@rix0rrr
Copy link
Contributor

rix0rrr commented Jun 4, 2021

This is true. Unfortunately, given the information we have there's not a lot we can do about it. The only solution is to delete the stacks by hand.

@rix0rrr rix0rrr closed this as completed Jun 4, 2021
@github-actions
Copy link

github-actions bot commented Jun 4, 2021

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

@gliptak
Copy link
Author

gliptak commented Jun 4, 2021

@rix0rrr what did you mean by "Unfortunately, given the information we have there's not a lot we can do about it."? Do you need more details on reproducibility?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/core Related to core CDK functionality bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

2 participants