From http://www.terraform.io/docs/providers/aws/r/instance.html, it does not appear to be possible to specify the instance name or tags - both of which are pretty essential for managing a fleet of AWS instances.
Packer lets you specify these (yay!), but prebuilt AMIs do not usually have the attributes you desire.
Hey @nickelser! Yup, that is needed for sure. I added it to the AWS meta-issue to track, #28. Thanks!
Got it - for new AWS issues should I be adding as a comment to #28? Or is submitting new issues OK?
Submitting new issues is fine for the sake of Google, but we just merge them into the main issue as things would otherwise get unruly – each provider just has so many features, especially AWS.
Any provision for adding aws-instance name in .tf file before launching it.Like google cloud provider has.
I don't know when this was added but I think this issue is solved, right?
@gboudrias yes you can add the instance name adding the tags:name within aws_instance resource
tags {
Name = "Demo instance"
}
sorry for the late answer
FYI for Terraform v0.12.20 you'll need to do tags = { Name = "Demo instance" }.
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
@gboudrias yes you can add the instance name adding the tags:name within aws_instance resource
tags { Name = "Demo instance" }sorry for the late answer