- 4/9/2020 -AWSEC2This blog will show how to use AWS elastic IP to assign to EC Instance but before that... Why do you need to use an elastic IP address? Assume you have the following EC2 had set up, you use your EC2 as a web server and the public IP address is as follows. Now, if you stop your instance and start again. The EC2 instance public IP address changed! So this could an issue if you need to know this server's IP address for processing something else. You could use EC2 instance metadata to log the IP address somewhere, like using Lambda, or you could use elastic IP address I will show later. Following is how you use AWS elastic IP address.
- 4/1/2020 -EC2AWSSSH into EC2 instance To retrieve EC2 instance meta information, once SSH into EC2 instance type following command. run with root privileges sudo su list all the metadata curl http://169.254.169.254/latest/meta-data Get EC2's hostname curl http://169.254.169.254/latest/meta-data/local-hostname Get EC2's user data curl http://169.254.169.
- 4/1/2020 -EBSEC2This blog shows how to backup EC2 instance and create another instance to the same region or different region. Create a snapshot from EC2 EBS volume Create snapshot Once the snapshot is complete should be able to check from the dashboard. Create an image from snapshot Once create an Image, then you can launch the EC2 instance from the image in the current region.