My team is using a mixture of hashicorp/terraform-aws-consul, hashicorp/terraform-aws-vault, and our own modules for all other types of instances. We noticed that EBS volumes generated for Consul and Vault instances do not get any tags, so they show up in the UI as having no name. Consequently, it is more difficult to determine at a glance if they are legitimate or actively-used volumes.
For our own modules, we use aws_launch_template rather than aws_launch_configuration, and we put tag_specifications blocks within them like so:
The Terraform docs suggest that the tag_specifications feature is exclusive to aws_launch_template although I hope that you may be able to determine some way to get the same thing in aws_launch_configuration as well.
My team is using a mixture of
hashicorp/terraform-aws-consul
,hashicorp/terraform-aws-vault
, and our own modules for all other types of instances. We noticed that EBS volumes generated for Consul and Vault instances do not get any tags, so they show up in the UI as having no name. Consequently, it is more difficult to determine at a glance if they are legitimate or actively-used volumes.For our own modules, we use
aws_launch_template
rather thanaws_launch_configuration
, and we puttag_specifications
blocks within them like so:The Terraform docs suggest that the
tag_specifications
feature is exclusive toaws_launch_template
although I hope that you may be able to determine some way to get the same thing inaws_launch_configuration
as well.