-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
volume_tags on instance (sometimes) clobbers attached EBS volume tags #884
Comments
Have encountered same issue with same setup in Terraform 0.9.8 and 0.9.11. Attached volume tags gets clobbered by the instance volume tags. Only workaround right now is to not set volume tags via the aws_instance attribute. |
This is a very annoying problem. It could be solved by: Only allow volume_tags to apply to block devices defined in the aws_instance resource, or shift the tags to the block_device sections. Or add a new tagging resource that allows tags to be added to the root block device outside of the aws_instance. This ones seems like a really bad idea though. |
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you! |
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! |
We have merged a fix to the Now that the fix is in place, if you find any problems with |
This issue was originally opened by @gavD as hashicorp/terraform#15302. It was migrated here as part of the provider split. The original body of the issue is below.
Terraform Version
0.9.8
### Description
I use
volume_tags
on an EC2 instance to set my boot volume's tags. However, for my mounted volumes, I want slightly different tags (I useMakeSnapshot: True
so a custom tool makes a snapshots ONLY of the mounted volume)Expected Behavior
MakeSnapshot: True is set on the mounted volume
Actual Behavior
Terraform SOMETIMES does what I want and SOMETIMES stripes the MakeSnapshot tag. Here's the plan output:
Steps to Reproduce
Here's an example terraform config with the irrelevant parts stripped out.
then run
terraform plan
Important Factoids
References
The text was updated successfully, but these errors were encountered: