-
Notifications
You must be signed in to change notification settings - Fork 323
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 --public/--private flags to specify which IP to return #4
Comments
We now return the public IP if available, otherwise the private IP. Close enough. |
@adammck how would you go about getting around networking requirements that prevent access from the public ip. Is there anyway to force private only? |
I'm afraid that there's currently no way to force a private IP when a public IP is available. I'd like to add a flag and/or ENV var to do it. |
I like it! very useful for me. :-) IMO, If the terraform-inventory returns both of public IPs and private IPs, It's more useful for me.
But a flag and/or ENV is good. What do you think? |
We usually address instances by private ip (site to site vpn) even though they also have public IPs assigned usually. |
You can force use of the private IP by setting
See PR #28. |
Right now we only return the
private_ip
of each instance, but it would be useful to be able to return the public IP instead, or even to correlate instances with their DNS records if possible.The text was updated successfully, but these errors were encountered: