2017年9月17日 星期日

[AWS] 測試與轉移

做什麼都要先備份或測試

1. snapshot
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-creating-snapshot.html

---
To create a snapshot using the console
  1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
  2. Choose Snapshots in the navigation pane.
  3. Choose Create Snapshot.
  4. In the Create Snapshot dialog box, select the volume to create a snapshot for, and then choose Create.
---


2. 測試 snapshot
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-launch-snapshot.html

---
To create an AMI from your root volume using the console
  1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
  2. In the navigation pane, choose Elastic Block Store, Snapshots.
  3. Choose Create Snapshot.
  4. For Volumes, start typing the name or ID of the root volume, and then select it from the list of options.
  5. Choose the snapshot that you just created, and then choose Actions, Create Image.
  6. In the Create Image from EBS Snapshot dialog box, provide the following information and then choose Create. If you're re-creating a parent instance, then choose the same options as the parent instance.
    • Architecture: Choose i386 for 32-bit or x86_64 for 64-bit.
    • Root device name: Enter the appropriate name for the root volume. For more information, see Device Naming on Linux Instances.
    • Virtualization type: Choose whether instances launched from this AMI use paravirtual (PV) or hardware virtual machine (HVM) virtualization. For more information, see Linux AMI Virtualization Types.
    • (PV virtualization type only) Kernel ID and RAM disk ID: Choose the AKI and ARI from the lists. If you choose the default AKI or don't choose an AKI, you'll be required to specify an AKI every time you launch an instance using this AMI. In addition, your instance may fail the health checks if the default AKI is incompatible with the instance.
    • (Optional) Block Device Mappings: Add volumes or expand the default size of the root volume for the AMI. For more information about resizing the file system on your instance for a larger volume, see Extending a Linux File System after Resizing the Volume.
  7. In the navigation pane, choose AMIs.
  8. Choose the AMI that you just created, and then choose Launch. Follow the wizard to launch your instance. For more information about how to configure each step in the wizard, see Launching an Instance.
---















沒有留言: