-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Tags are removed from EBS volumes #17074
Comments
This comment has been minimized.
This comment has been minimized.
We have merged a fix to the Now that the fix is in place, if you find any problems with |
This has been released in version 3.24.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
We're seeing something similar after upgrading terraform-provider-aws 3.19 -> 3.26: we have never used Applying the terraform change to the Is this a new issue caused by the #15474 fix in 3.24? EDIT: See also #15474 (comment) |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform v0.14.4
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
The first apply and subsequent applies result in an EBS volume with a "Name" tag set to "example1".
Actual Behavior
The first apply creates the volume with the correct tag, but subsequent applies alternatively remove and recreate the tag.
Steps to Reproduce
terraform apply
. The volume will be created correctly with the "Name" tag set to "example1".terraform apply
again. The "Name" tag will be removed from the volume.terraform apply
again. The "Name" tag will be added to the volume.terraform apply
again. The "Name" tag will be removed from the volume.terraform apply
again. The "Name" tag will be added to the volume.Important Factoids
Applies that remove the tag from the volume have the following plan. This is unexpected, because the instance resource does not specify
volume_tags
:Removing
root_block_device
from the ignored changes onaws_instance
will prevent volume tags from being removed. However, I'm seeing other examples in my Terraform environment of tags being removed from volumes which do not ignore changes toroot_block_device
. This was just the first example that I could reproduce simply.The text was updated successfully, but these errors were encountered: