Per https://aws.amazon.com/blogs/aws/new-tag-ec2-instances-ebs-volumes-on-creation/ quoted below and go-aws-sdk 1.8.4 being upgraded in #13152, it will soon be possible to have EC2/EBS tagging done on resource creation. It would be fantastic to have this supported in Terraform! A pain point for us right now is root EBS volume tagging, which this should theoretically solve.
You now have the ability to specify tags for EC2 instances and EBS volumes as part of the API call that creates the resources (if the call creates both instances and volumes, you can specify distinct tags for the instance and for each volume). The resource creation and the tagging are performed atomically; both must succeed in order for the operation (RunInstances, CreateVolume, and other functions that create resources) to succeed. You no longer need to build tagging scripts that run after instances or volumes have been created.
The Terraform aws_instance resource configuration supports the new tag on creation behavior.
Hi @bflad
I am currently implementing this - it will be part of Terraform 0.9.3 hopefully :)
Paul
Any progress on this enhancement?
@stack72 I don't suppose this would support root volumes on launch configs would it?
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Most helpful comment
Hi @bflad
I am currently implementing this - it will be part of Terraform 0.9.3 hopefully :)
Paul