Naming the root block device EBS volume

Can you create a tag and name the root block device from terraform?

The reason for the question is so that I can create a life cycle policy to snapshot the volume, however it requires a target tags entry.

target_tags = { Snapshot = "true" }

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/dlm_lifecycle_policy

submitted by /u/2seem
[link] [comments]

Read more here: https://www.reddit.com/r/Terraform/comments/kx6tse/naming_the_root_block_device_ebs_volume/

Content Attribution

This content was originally published by /u/2seem at Terraform, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: