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

Add ENV TF_KEY_NAME to specify which IP to return #28

Merged
merged 2 commits into from
Feb 20, 2016

Conversation

anarcher
Copy link
Contributor

I am not sure that this PR is useful. But I need it. :-)
For example, I want to use the terraform-inventory in a VPC.

$export TERRAFORM_INVENTORY_KEYNAME=private_ip
(go:terraform-inventory) anarch@booker ~/go/terraform-inventory/src/anarcher/terraform-inventory (master)
$./terraform-inventory --list
{ "instance" : ["10.90.0.2"],"name_instance" : ["10.90.0.35"] }

Anyway, I like the terraform-inventory. It's a good idea and very useful for me! :-)

Thanks,

@adammck
Copy link
Owner

adammck commented Feb 17, 2016

This is a great idea, thanks! Would you mind changing the var name to something a little more concise? Maybe TF_KEY_NAME, to match the existing TF_STATE var?

@anarcher
Copy link
Contributor Author

Yes, TF_KEY_NAME is better. I changed it. :-)

adammck added a commit that referenced this pull request Feb 20, 2016
Add ENV TERRAFORM_INVENTORY_KEYNAME to specify which IP to return
@adammck adammck merged commit 35e7760 into adammck:master Feb 20, 2016
@adammck adammck changed the title Add ENV TERRAFORM_INVENTORY_KEYNAME to specify which IP to return Add ENV TF_KEY_NAME to specify which IP to return Mar 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants