Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specifying AWS instance name/tags #139

Closed
nickelser opened this issue Aug 1, 2014 · 8 comments
Closed

Allow specifying AWS instance name/tags #139

nickelser opened this issue Aug 1, 2014 · 8 comments

Comments

@nickelser
Copy link

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.

@pearkes
Copy link
Contributor

pearkes commented Aug 1, 2014

Hey @nickelser! Yup, that is needed for sure. I added it to the AWS meta-issue to track, #28. Thanks!

@pearkes pearkes closed this as completed Aug 1, 2014
@nickelser
Copy link
Author

Got it - for new AWS issues should I be adding as a comment to #28? Or is submitting new issues OK?

@pearkes
Copy link
Contributor

pearkes commented Aug 1, 2014

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.

@kamaljeetrathi
Copy link

Any provision for adding aws-instance name in .tf file before launching it.Like google cloud provider has.

@gboudrias
Copy link

I don't know when this was added but I think this issue is solved, right?

https://www.terraform.io/docs/providers/aws/r/instance.html

@gianlucaciocci
Copy link

gianlucaciocci commented Sep 28, 2016

@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

@mellertson
Copy link

FYI for Terraform v0.12.20 you'll need to do tags = { Name = "Demo instance" }.

@ghost
Copy link

ghost commented Mar 1, 2020

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.

@ghost ghost locked and limited conversation to collaborators Mar 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants