paws.compute (version 0.1.0)

lightsail_create_instances_from_snapshot: Uses a specific snapshot as a blueprint for creating one or more new instances that are based on that identical configuration

Description

Uses a specific snapshot as a blueprint for creating one or more new instances that are based on that identical configuration.

Usage

lightsail_create_instances_from_snapshot(instanceNames,
  attachedDiskMapping, availabilityZone, instanceSnapshotName, bundleId,
  userData, keyPairName, tags)

Arguments

instanceNames

[required] The names for your new instances.

attachedDiskMapping

An object containing information about one or more disk mappings.

availabilityZone

[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.

instanceSnapshotName

[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.

bundleId

[required] The bundle of specification information for your virtual private server (or instance), including the pricing plan (e.g., micro_1_0).

userData

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.

keyPairName

The name for your key pair.

tags

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.

Request syntax

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"
    )
  )
)

Details

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.