Skip to content

Bundles an Amazon instance store-backed Windows instance

Description

Bundles an Amazon instance store-backed Windows instance.

During bundling, only the root device volume (C:) is bundled. Data on other instance store volumes is not preserved.

BundleInstance is no longer supported. To create an AMI, use create_image instead. For more information about creating an Amazon EBS-backed AMI, see Create an Amazon EBS-backed AMI in the Amazon EC2 User Guide.

Usage

ec2_bundle_instance(InstanceId, Storage, DryRun)

Arguments

  • InstanceId

    [required] The ID of the instance to bundle.

    Default: None

  • Storage

    [required] The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.

  • DryRun

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Value

A list with the following syntax:

list(
  BundleTask = list(
    InstanceId = "string",
    BundleId = "string",
    State = "pending"|"waiting-for-shutdown"|"bundling"|"storing"|"cancelling"|"complete"|"failed",
    StartTime = as.POSIXct(
      "2015-01-01"
    ),
    UpdateTime = as.POSIXct(
      "2015-01-01"
    ),
    Storage = list(
      S3 = list(
        AWSAccessKeyId = "string",
        Bucket = "string",
        Prefix = "string",
        UploadPolicy = raw,
        UploadPolicySignature = "string"
      )
    ),
    Progress = "string",
    BundleTaskError = list(
      Code = "string",
      Message = "string"
    )
  )
)

Request syntax

svc$bundle_instance(
  InstanceId = "string",
  Storage = list(
    S3 = list(
      AWSAccessKeyId = "string",
      Bucket = "string",
      Prefix = "string",
      UploadPolicy = raw,
      UploadPolicySignature = "string"
    )
  ),
  DryRun = TRUE|FALSE
)