Skip to main content

cloud_formation_stack_records

Creates, updates, deletes, gets or lists a cloud_formation_stack_records resource.

Overview

Namecloud_formation_stack_records
TypeResource
Idaws.lightsail.cloud_formation_stack_records

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the CloudFormation stack record. It starts with CloudFormationStackRecord followed by a GUID. (pattern: <code>\w[\w-]*\w</code>)
arnstringThe Amazon Resource Name (ARN) of the CloudFormation stack record. (pattern: <code>.\S.</code>)
created_atstring (date-time)The date when the CloudFormation stack record was created.
destination_infoobjectA list of objects describing the destination service, which is AWS CloudFormation, and the Amazon Resource Name (ARN) of the AWS CloudFormation stack.
locationobjectA list of objects describing the Availability Zone and Amazon Web Services Region of the CloudFormation stack record.
resource_typestringThe Lightsail resource type (CloudFormationStackRecord). (ContainerService, Instance, StaticIp, KeyPair, InstanceSnapshot, Domain, PeeredVpc, LoadBalancer, LoadBalancerTlsCertificate, Disk, DiskSnapshot, RelationalDatabase, RelationalDatabaseSnapshot, ExportSnapshotRecord, CloudFormationStackRecord, Alarm, ContactMethod, Distribution, Certificate, Bucket)
source_infoarrayA list of objects describing the source of the CloudFormation stack record.
statestringThe current state of the CloudFormation stack record. (Started, Succeeded, Failed)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_cloud_formation_stack_recordsselectregionReturns the CloudFormation stack record created as a result of the create cloud formation stack operation. An AWS CloudFormation stack is used to create a new Amazon EC2 instance from an exported Lightsail snapshot.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns the CloudFormation stack record created as a result of the create cloud formation stack operation. An AWS CloudFormation stack is used to create a new Amazon EC2 instance from an exported Lightsail snapshot.

SELECT
name,
arn,
created_at,
destination_info,
location,
resource_type,
source_info,
state
FROM aws.lightsail.cloud_formation_stack_records
WHERE region = '{{ region }}' -- required
;