Terraform: Support EC2 Instance Tag on Creation

Created on 29 Mar 2017  ยท  4Comments  ยท  Source: hashicorp/terraform

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.

Affected Resource(s)

  • aws_instance

Expected Behavior

The Terraform aws_instance resource configuration supports the new tag on creation behavior.

enhancement provideaws

Most helpful comment

Hi @bflad

I am currently implementing this - it will be part of Terraform 0.9.3 hopefully :)

Paul

All 4 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rjinski picture rjinski  ยท  3Comments

carl-youngblood picture carl-youngblood  ยท  3Comments

franklinwise picture franklinwise  ยท  3Comments

c4milo picture c4milo  ยท  3Comments

zeninfinity picture zeninfinity  ยท  3Comments