Backup and Reusing of AMI with Snapshot

Home /

Table of Contents

For various reasons, the current image of the instance needs to be saved. The user may want to reuse the image with the necessary packages pre-installed. This is where AWS’s snapshot comes in handy. With a snapshot, we can create a backup of the AMI and later use the snapshot to launch new instances with the saved AMI with the same configuration (packages, directories, files) as the original AMI.

We have an instance running in the instances section. After launching an instance follow through this article where we will back up this instance as a snapshot with step-by-step guidance.

Prerequisites

  • A running EC2 instance

Step By Step Guidance

uictccOY74QVBgbLRCIGZw8lbxhFkJvA963MZkMIRIsOyQlip8gZcwe9Cp49qNV - Backup and Reusing of AMI with Snapshot

In the EC2 panel, go to Elastic Block Store> Snapshot. Then click ‘Create snapshot’.

s7Hgoa3RL4V3chRIggbeiIKIyiw8FMGlcoQtgFWMHQDC G16jdqkcnapKEOI1ICPJqIWu5UqNrYoPpEnpI20u682hix11L7e4h9zOFgz7D9A8dcHl C OoXEe9p51EVfIaUglXVDWfk8JssXFcYD4R4 - Backup and Reusing of AMI with Snapshot

In the create snapshot panel, select Instance as Resource type. Then select the Instance ID from the dropdown that you want to backup. Add a description if necessary.

f3DMkifnGMOXB n6kBqIGYJ BHgjIGr wkq9 t6IL4uvf7 loS7 tXXBFLpYDCreJApo0SbGrBxSkLu2s0R G408Mwv4d1v7FJ12picR9gG6jswP21LR7 VWz Kw56e5nDNncDZTFwYaQThvJawi7ug - Backup and Reusing of AMI with Snapshot

If everything goes well, we should see a completed status. You may need to wait a few seconds for this.

eVFHeDI5spN jlw5wLQJA qfTdV7ZmDew6641Almcj3ReCxs2GAOEkDKALbCyayseI KrfFUYrDW3MhpHm7C9lUI8S2SeRLK ojjsiYuEOe7tn4ddskPAiWK5gw69TBOsfOuXNZZsN7 tbZdagA18lU - Backup and Reusing of AMI with Snapshot

To create an image from the current snapshot, select the snapshot, go to Actions, and click on ‘Create image from snapshot’

Svl35bK6bFeJXDTS38gc2gBEf5vxY x5C68eDQ9FfvqEOREwN5v4z6Jy ZiB8bhsGotVQ1Com Wq3Od6dg1BKuK4v8ODsaJnLONJUEel s8FjeobytZXdWbFgNA87pJvm27IaUAAuMZYytvEQqVlfcQ - Backup and Reusing of AMI with Snapshot

Give a name to the image, and description (if necessary), and keep everything as it is.

BMziiPRmsHTunSJib0kgvWJ62a4IIh BLFWR380ReuUd0ld2tzll XBO2QR SqtZvTPIRgWpq00iikgC1pQxdTycdwE lRt nhKjkWEtd W1exmi05uaVS dyp jLQbq1 - Backup and Reusing of AMI with Snapshot

Then press ‘Create image’. If everything goes well you should see a success message like this.

QeYO7iantSq 4xkF7BTU5lll7PxN6xMj7xoQK79MkCYuMgJ3YNHABqSPYD0kTrI0b7LEK6SAxA8t2yCo1aUnq DrOFqr3Rhp1CRDgD6 - Backup and Reusing of AMI with Snapshot

In the Images>AMIs section you should see your newly created image, which can be used for further instance launching. As shown in the image, click on the AMI, then press Launch instance from AMI.

bbqCR2sgSUZ2dX a 6Clhg0G0lzezGpmhQV9D4I14fPiYYRoao5CT veYrNC0bXuKHRPGysaL8eIC2IkiU kjN6Xo1TWel nvT5q0KJBMu6l1f QhrDJaytb88VecpFYCwXBIPAQGIkJA4EIDcTM4Co - Backup and Reusing of AMI with Snapshot

You should arrive at a regular ‘Launch an instance’ section with your AMI selected. The rest is like launching a regular instance (Launch and SSH (from Windows) to AWS EC2 Instance).

qvBtmfwHE3GOi1fQ94cRtWxJyZ0meSMgnKnUXfgN2QfJZvz5fbdGShW6Fpke ECOcKbGlqxIMlj6iGlB0RkgBwCsOgKAgug8nYQ - Backup and Reusing of AMI with Snapshot

Congratulation! Now, you can keep a backup of your instances and reuse them to help you save time!

Share The Tutorial With Your Friends
Twiter
Facebook
LinkedIn
Email
WhatsApp
Skype
Reddit

Check Our Ebook for This Online Course

Advanced topics are covered in this ebook with many practical examples.

Other Recommended Article