HTTPS setup in Amazon EC2

First, you need to open HTTPS port (443). To do that, you go to and click on the Security Groups link on the left, then create a new security group with also HTTPS available. Then, just update the security group of a running instance or create a new instance using that group. After these … Read more

How to get the instance id from within an ec2 instance?

See the EC2 documentation on the subject. Run: wget -q -O – If you need programmatic access to the instance ID from within a script, die() { status=$1; shift; echo “FATAL: $*”; exit $status; } EC2_INSTANCE_ID=”`wget -q -O – || die \”wget instance-id has failed: $?\”`” Here is an example of a more … Read more