SolTech Inc - Start, Stop and Restart Amazon EC2 instances - Step by Step

11

Click here to load reader

description

Amazon announced Dec 3 the ability to persist ec2 instances by saving boot data within the ebs store. This presentation show step by step how to start, stop and restart an instance without losing data. SolTech is a developer of custom software. if you need help leveraging cloud computing with custom cloud applications , give us a call or vist http://www.soltech.net

Transcript of SolTech Inc - Start, Stop and Restart Amazon EC2 instances - Step by Step

Page 1: SolTech Inc - Start, Stop and Restart Amazon EC2 instances - Step by Step

Contact SolTech (404) 601-6000 if you have questions related to cloud computing and the

development of custom cloud based applications.

Page 2: SolTech Inc - Start, Stop and Restart Amazon EC2 instances - Step by Step

SolTech. Inc http://www.soltech.net (404) 601-6000

Amazon EC2 AMI’s can now persist.

Amazon EC2 has enhanced the integration between its Elastic Block Store (EBS)

and EC2 instance functionality.

Amazon EC2 instances can now be booted directly from Amazon EBS

volumes, and customers now have much richer control over how block devices

are exposed to their instances.

This allows larger root devices, faster launch times, greater instance

durability, and the ability to repair a mis‐configured instance.

This also enables a number of very desirable features that we have been

waiting for …, such as the ability to stop an instance without terminating

it, and the ability to create an AMI that is based directly on an existing

instance

Contact SolTech (404) 601-6000 if you have questions related to cloud computing and the

development of custom cloud based applications.

Page 3: SolTech Inc - Start, Stop and Restart Amazon EC2 instances - Step by Step

Contact SolTech (404) 601-6000 if you have questions related to cloud computing and the

development of custom cloud based applications.

Page 4: SolTech Inc - Start, Stop and Restart Amazon EC2 instances - Step by Step

Contact SolTech (404) 601-6000 if you have questions related to cloud computing and the

development of custom cloud based applications.

Page 5: SolTech Inc - Start, Stop and Restart Amazon EC2 instances - Step by Step

Contact SolTech (404) 601-6000 if you have questions related to cloud computing and the

development of custom cloud based applications.

Page 6: SolTech Inc - Start, Stop and Restart Amazon EC2 instances - Step by Step

Connect to the instance

with winscp or putty

Contact SolTech (404) 601-6000 if you have questions related to cloud computing and the

development of custom cloud based applications.

Page 7: SolTech Inc - Start, Stop and Restart Amazon EC2 instances - Step by Step

Contact SolTech (404) 601-6000 if you have questions related to cloud computing and the

development of custom cloud based applications.

Page 8: SolTech Inc - Start, Stop and Restart Amazon EC2 instances - Step by Step

SolTech. Inc http://www.soltech.net (404) 601-6000

Connected !!

Contact SolTech (404) 601-6000 if you have questions related to cloud computing and the

development of custom cloud based applications.

Page 9: SolTech Inc - Start, Stop and Restart Amazon EC2 instances - Step by Step

SolTech. Inc http://www.soltech.net (404) 601-6000

running

we stop it

It stopped – saving $$$

Create a test file

Test Persistence

Contact SolTech (404) 601-6000 if you have questions related to cloud computing and the

development of custom cloud based applications.

Page 10: SolTech Inc - Start, Stop and Restart Amazon EC2 instances - Step by Step

At this point, the instance will move from the “Stopped” to “Pending” to “Running”

state. Once it is running, you can interact like any other running Amazon EC2

instance.

It is potentially important to note that the public IP address of your instance may

change after it has been stopped and restart. If this is not desired behavior you

can leverage Elastic IPs to create a consistent IP address.

We login again and check if our file exists

running

Test Persistence

Page 11: SolTech Inc - Start, Stop and Restart Amazon EC2 instances - Step by Step

Working with stopped instances ..

Next presentation ..

Building an AMI from a running instance … the ability to take a snapshot in

time, save and then restart that snapshot.

One common use case is the desire to make a point‐in‐time copy of the

contents of the root device so that another instance could boot off of that

image. Images are typically created for backup purposes or to make clones

of the existing instance.

Previously, this process on Linux required you to create an image of your

instance on the instance itself and no APIs were available to assist. On

Windows, there was an API that you could call to create an image of the

instance, but had to make another subsequent call to register the AMI.

Now, there is one API for both Linux/UNIX and Windows that allows you to

bundle your AMI backed by Amazon EBS and register it.

Contact SolTech (404) 601-6000 if you have questions related to cloud computing and the

development of custom cloud based applications.