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

[AWS::Batch::ComputeEnvironment] - [BUG] - Tag changes triggers compute environment replacement #2270

Open
bdoyle0182 opened this issue Feb 27, 2025 · 0 comments
Labels

Comments

@bdoyle0182
Copy link

Name of the resource

AWS::Batch::ComputeEnvironment

Resource Name

No response

Issue Description

Making any changes to tags on the top level compute environment resource triggers a replacement. This is highly problematic for us and tagging should never affect the ability to update the resource in place. I'm linking this other MSK issue that was finally resolved last year due to the same behavior. Can CloudFormation service team invest in getting to the point that it's a requirement for service teams to support tag changes. This is very dangerous behavior for resource replacement to get triggered in an unexpected way when something like stack level tags change. And can put developers in a bind in being able to keep their resources properly tagged when new tagging requirements come in after initially shipping and the resource starts getting used. Developers then start having to build hacky work arounds to make sure new tags don't get applied to the existing resources in their code.

Also just to be clear this is the top level ComputeEnvironment. The ReplaceComputeEnvironment flag only lets you update the tags within the ComputeResources which are the tags that get applied to the EC2 instances created by the environment, the top level ComputeEnvironment will still replace if you set this field to true.

This is properly documented in the API, but still going to file this as a bug given the issue with the behavior.

Expected Behavior

Tag changes on AWS::Batch::ComputeEnvironment should not trigger replacement

Observed Behavior

Tag changes replace the resource

Test Cases

n/a

Other Details

No response

@bdoyle0182 bdoyle0182 added the bug label Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant