Learn R Programming

paws.compute (version 0.1.0)

lightsail_create_cloud_formation_stack: Creates an AWS CloudFormation stack, which creates a new Amazon EC2 instance from an exported Amazon Lightsail snapshot

Description

Creates an AWS CloudFormation stack, which creates a new Amazon EC2 instance from an exported Amazon Lightsail snapshot. This operation results in a CloudFormation stack record that can be used to track the AWS CloudFormation stack created. Use the get cloud formation stack records operation to get a list of the CloudFormation stacks created.

Usage

lightsail_create_cloud_formation_stack(instances)

Arguments

instances

[required] An array of parameters that will be used to create the new Amazon EC2 instance. You can only pass one instance entry at a time in this array. You will get an invalid parameter error if you pass more than one instance entry in this array.

Request syntax

svc$create_cloud_formation_stack(
  instances = list(
    list(
      sourceName = "string",
      instanceType = "string",
      portInfoSource = "DEFAULT"|"INSTANCE"|"NONE"|"CLOSED",
      userData = "string",
      availabilityZone = "string"
    )
  )
)

Details

Wait until after your new Amazon EC2 instance is created before running the create cloud formation stack operation again with the same export snapshot record.