i would like to find the public IP address of my EC2 instance from within the server itself.I know it is possible using ec2-describe-instances. But i want to do it assuming ec2-api-tools are not installed.
Is there a way to find that out?
|
i would like to find the public IP address of my EC2 instance from within the server itself.I know it is possible using ec2-describe-instances. But i want to do it assuming ec2-api-tools are not installed. Is there a way to find that out? | |||
|
feedback
|
Also,
to get a list of other metadata you can get. | |||
|
feedback
|
|
As a matter of course, I now assign an Elastic IP to all new permanent (anything longer than a day) EC2 instances. This makes everything so much easier. | |||
|
feedback
|
|
There's a quick way to do it from the console on any server With curl:
With wget:
| ||||
|
feedback
|
|
Hi I hope this article helps you: http://jcsalterego.github.com/2011/02/24/standing-on-the-shoulder-of-giants.html It describes a similar process to other answers here but goes in to more detail. | |||
|
feedback
|