EC2 Instance Cloning

前端 未结 7 2063
伪装坚强ぢ
伪装坚强ぢ 2021-01-29 19:22

Is it possible to clone a EC2 instance data and all?

相关标签:
7条回答
  • 2021-01-29 19:43

    You can do it very easily with a Cloud Management software -like enStratus, RightScale or Scalr (disclaimer: I work there). With the cloned farm you can:

    1. Create a snapshot or a pre-made image to launch another day
    2. Duplicate your configuration to test it before production
    0 讨论(0)
  • 2021-01-29 19:46

    You can make an AMI of an existing instance, and then launch other instances using that AMI.

    0 讨论(0)
  • 2021-01-29 19:47

    Nowadays it is even easier to clone the machine with EBS-backed instances released a while ago. This is how we do it in BitNami Cloud Hosting. Basically you just take a snapshot of the instance which can be used later to launch a new server. You can do it either using AWS console (saving the EBS-backed instance as AWS AMI) or using the EC2 API tools:

    • create a snapshot with ec2-create-snapshot
    • and then launch an instance from a snapshot

    Cloning the instance is nothing else but creating the backup and then launching a new server based on that. You can find bunch of articles out there describing this problem, try to find the info about "how to ..." backup or resize the whole EC2 instance, for example this blog is a really good place to start: alestic.com

    0 讨论(0)
  • 2021-01-29 19:50

    The easier way is through the web management console:

    1. go to the instance
    2. select the instance and click on instance action
    3. create image

    Once you have an image you can launch another cloned instance, data and all. :)

    0 讨论(0)
  • 2021-01-29 19:51

    To Answer your question: now AWS make cloning real easy see Launch instance from your Existing Instance

    1. On the EC2 Instances page, select the instance you want to use
    2. Choose Actions, and then Launch More Like This.
    3. Review & Launch

    This will take the existing instance as a Template for the new once.

    or you can also take a snapshot of the existing volume and use the snapshot with the AMI (existing one) which you ping during your instance launch

    0 讨论(0)
  • 2021-01-29 20:03

    There is no explicit Clone button. Basically what you do is create an image, or snapshot of an existing EC2 instance, and then spin up a new instance using that snapshot.

    First create an image from an existing EC2 instance.

    enter image description here


    Check your snapshots list to see if the process is completed. This usually takes around 20 minutes depending on how large your instance drive is.

    enter image description here


    Then, you need to create a new instance and use that image as the AMI.

    enter image description here

    enter image description here

    0 讨论(0)
提交回复
热议问题