Create a larger instance, block storage disk, or database from a Lightsail snapshot using the AWS CLI - Amazon Lightsail

Create a larger instance, block storage disk, or database from a Lightsail snapshot using the AWS CLI

It happens. Your cloud project is growing and you need more compute power right away! We can help you with that. You can do everything from within the Lightsail console, or you can use the AWS Command Line Interface (AWS CLI) to do it.

We'll show you how to take a snapshot of your current Lightsail instance and create a new, larger one with the compute power you need based on that snapshot.


At this time, we don't support creating a smaller instance size (or bundle) from a snapshot. You can only create the same size instance or a larger instance.


  1. First, if you haven't already, you need to install the AWS CLI. To learn more, see Installing the AWS Command Line Interface. Be sure you configure the AWS CLI.

  2. You also need a snapshot of your instance to work from. To learn more, see Create a snapshot of your Linux or Unix instance.

Step 1: Get your snapshot name

This might seem obvious, but you need to have your snapshot name before you execute this AWS CLI command to create the larger instance. The good news is that it's easy to get.

  1. In the AWS CLI, type the following.

    aws lightsail get-instance-snapshots

    You should see output similar to the following.

    { "instanceSnapshots": [ { "fromInstanceName": "WordPress-512MB-EXAMPLE", "name": "WordPress-512MB-EXAMPLE-system-1234567891011", "sizeInGb": 20, "resourceType": "InstanceSnapshot", "fromInstanceArn": "arn:aws:lightsail:us-east-1:123456789101:Instance/86f49ee4-26cc-4802-9b0d-12345EXAMPLE", "state": "available", "arn": "arn:aws:lightsail:us-east-1:123456789101:InstanceSnapshot/c87acb5f-851e-4fbc-94f1-12345EXAMPLE", "fromBundleId": "nano_1_0", "fromBlueprintId": "wordpress_4_6_1", "createdAt": 1480898073.653, "location": { "availabilityZone": "all", "regionName": "us-east-2" } } ] }
  2. Copy the name value to some place where you can get it later. This is the --instance-snapshot-name value you'll use in your AWS CLI command.

Step 2: Choose a bundle

A bundle is really just a pricing plan and a configuration for your instance. For example, Medium Linux-based bundles cost $24 USD per month and have 4.0 GB of RAM, 80 GB SSD storage, and so on.

If you started out with a smaller bundle and need more compute power, you might want to upgrade to a larger bundle. For more information, see Create a larger instance, block storage disk, or database from a snapshot.


You cannot resize to a smaller bundle from a snapshot. If you want to create a smaller bundle, you have to start over.

  1. Type the following AWS CLI command.

    aws lightsail get-bundles

    Your output should be similar to the following.

    { "bundles": [ { "price": 5.0, "cpuCount": 2, "diskSizeInGb": 20, "bundleId": "nano_3_0", "instanceType": "nano", "isActive": true, "name": "Nano", "power": 298, "ramSizeInGb": 0.5, "transferPerMonthInGb": 1024, "supportedPlatforms": [ "LINUX_UNIX" ], }, { "price": 7.0, "cpuCount": 2, "diskSizeInGb": 40, "bundleId": "micro_3_0", "instanceType": "micro", "isActive": true, "name": "Micro", "power": 500, "ramSizeInGb": 1.0, "transferPerMonthInGb": 2048, "supportedPlatforms": [ "LINUX_UNIX" ], }, { "price": 12.0, "cpuCount": 2, "diskSizeInGb": 60, "bundleId": "small_3_0", "instanceType": "small", "isActive": true, "name": "Small", "power": 1000, "ramSizeInGb": 2.0, "transferPerMonthInGb": 3072, "supportedPlatforms": [ "LINUX_UNIX" ], }, { "price": 24.0, "cpuCount": 2, "diskSizeInGb": 80, "bundleId": "medium_3_0", "instanceType": "medium", "isActive": true, "name": "Medium", "power": 2000, "ramSizeInGb": 4.0, "transferPerMonthInGb": 4096, "supportedPlatforms": [ "LINUX_UNIX" ], }, { "price": 44.0, "cpuCount": 2, "diskSizeInGb": 160, "bundleId": "large_3_0", "instanceType": "large", "isActive": true, "name": "Large", "power": 3000, "ramSizeInGb": 8.0, "transferPerMonthInGb": 5120, "supportedPlatforms": [ "LINUX_UNIX" ], }, ] }
  2. Locate the bundleId value of the bundle you want. For more information, see Lightsail Pricing.

Step 3: Write your AWS CLI command and create your new instance

Now that you have your parameter values, you're ready to write and execute your command to create the instance!

  1. Type the following.

    aws lightsail create-instances-from-snapshot --instance-names MyNewInstanceFromSnapshot --availability-zone us-east-1a --instance-snapshot-name WordPress-512MB-EXAMPLE-system-1234567891011 --bundle-id medium_1_0

    Your output should be similar to the following.

    { "operations": [ { "status": "Started", "resourceType": "Instance", "isTerminal": false, "statusChangedAt": 1486863990.961, "location": { "availabilityZone": "us-east-2a", "regionName": "us-east-2" }, "operationType": "CreateInstance", "resourceName": "MyNewInstanceFromSnapshot", "id": "30fec45e-e7d7-4e18-96c8-12345EXAMPLE", "createdAt": 1486863989.784 } ] }

    You can also return a list of regions and Availability Zones using the AWS CLI. Just type aws lightsail get-regions --include-availability-zones to return the list of availability zones with your get-regions request.

  2. Now open your new instance in the Lightsail console and start modifying it.

Next steps

After you create your new instance from a snapshot, here are some things you can do next: