Uses a specific snapshot as a blueprint for creating one or more new instances that are based on that identical configuration.
lightsail_create_instances_from_snapshot(instanceNames,
attachedDiskMapping, availabilityZone, instanceSnapshotName, bundleId,
userData, keyPairName, tags)[required] The names for your new instances.
An object containing information about one or more disk mappings.
[required] The Availability Zone where you want to create your instances. Use the
following formatting: us-east-2a (case sensitive). You can get a list
of Availability Zones by using the get regions
operation. Be sure to add the include Availability Zones parameter to
your request.
[required] The name of the instance snapshot on which you are basing your new instances. Use the get instance snapshots operation to return information about your existing snapshots.
[required] The bundle of specification information for your virtual private server
(or instance), including the pricing plan (e.g., micro_1_0).
You can create a launch script that configures a server with additional
user data. For example, apt-get -y update.
Depending on the machine image you choose, the command to get software
on your instance varies. Amazon Linux and CentOS use yum, Debian and
Ubuntu use apt-get, and FreeBSD uses pkg. For a complete list, see
the Dev Guide.
The name for your key pair.
The tag keys and optional values to add to the resource during create.
To tag a resource after it has been created, see the tag resource
operation.
svc$create_instances_from_snapshot(
instanceNames = list(
"string"
),
attachedDiskMapping = list(
list(
list(
originalDiskPath = "string",
newDiskName = "string"
)
)
),
availabilityZone = "string",
instanceSnapshotName = "string",
bundleId = "string",
userData = "string",
keyPairName = "string",
tags = list(
list(
key = "string",
value = "string"
)
)
)
The create instances from snapshot operation supports tag-based access
control via request tags and resource tags applied to the resource
identified by instanceSnapshotName. For more information, see the
Lightsail Dev Guide.