-
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
tags support for *_block_device within aws_instance resources #4017
Comments
hi, @mr-olson
$ terraform -version
spot_fleet_request's configuration cannot support EBS tags? |
@mr-olson not only different tag needs, also volume_tags are not stateful. If I add a key/value pair to |
It will be nice to also have support for |
@heldersepu handling dynamic sub-resource configurations should be handled in the upcoming Terraform 0.12 release using a new A high level preview of this feature and others coming in that version can be found in: https://www.hashicorp.com/blog/terraform-0-1-2-preview -- I believe we will be releasing additional blog posts going into additional details about some of these as well. |
@bflad Awesome! Looking forward to 0.12 Can you give us a code example of how something like that would look under the new release? |
Please see the comments in the upstream issue for draft implementations: hashicorp/terraform#7034 (comment) I believe this will specifically be its own blog post in the coming weeks. (Aside: I would suggest commenting on the upstream Terraform core issue about this topic rather than this one as its unrelated to the original issue and messaging all the issue followers.) |
Just stumbled over this issue, too. When assigning many |
Could someone please give a status update on this when they have a spare moment? I also have some use cases where this would be useful (setting tags to implement DLM policies on certain devices attached to an EC2 instance) |
This is a really needed feature. Not being able to add Name and other custom tags to the volumes makes tag-based resource grouping incomplete. Adding them manually later or using separate script defeats the purpose of managing everything via Terraform :( |
For now I'm using
|
For anyone considering the workaround above, you may try using the aws_ec2_tag resource.
|
If you want tag the root volume: |
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! |
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! |
It would be useful if tags could be provided inline with EBS volumes in aws_instance resources - via the *_block_device stanzas.
I'm aware of volume_tags, which sprays all volume with the same tags. That is expected because the EC2 API just works that way, but not ideal for instances where different volumes have different tag needs.
Terraform Version
Terraform v0.11.3
Affected Resource(s)
Terraform Configuration Files
References
Opening new issue per ask in hashicorp/terraform#3531
The text was updated successfully, but these errors were encountered: