-
Notifications
You must be signed in to change notification settings - Fork 4k
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
[cli] removes tags on self-mutating updates #9259
Comments
This seems to be [potentially] a general issue with the cli. Tags that are assigned via a change set (like the ones created with |
Agreed that this is a CLI issue. UX question: what should the command be if one wants to remove the tags? Not supplying any will not be sufficient anymore then. |
In hindsight, this is not a bug. |
I disagree with your assessment that it should never have been added as a feature. It is actually quite a useful feature. Please consider enterprise ORGs that have required tags and some of those tags are provided at time of build/deploy. For example without this feature there is no means without forcing either a new construct (I.e., standard Aspect for Tagging) and then requiring (how????) each CDK App in the ORG to include the specifics. And since there is no re-enforcement in CDK it is difficult to stop a build/deploy. In other words the PS. BTW, where is the issue to 'remove |
I've observed that the tags placed initially on the cdk-pipeline are subsequently removed on updates. It appears that the tags are lost because I used the cdk --tags option and that is not preserved in the CodeBuild that is used for the self-mutating aspects.
Reproduction Steps
Using this tutorial I was able to get a cdk-pipeline setup for my cdk app. When the tutorial describes this:
I added added the following:
so that the command looks like this:
The stack was successfully created initially. I checked the resources and they were properly tagged. I then started to move on with the tutorial to add more stages/stacks and eventually noticed the the tags were lost.
Ideally, the tags should be preserved from update to update.
Error Log
Observation of tags being removed from resources that initially had tags.
Environment
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: