cloud_formation_stack_records
Creates, updates, deletes, gets or lists a cloud_formation_stack_records resource.
Overview
| Name | cloud_formation_stack_records |
| Type | Resource |
| Id | aws.lightsail.cloud_formation_stack_records |
Fields
The following fields are returned by SELECT queries:
- get_cloud_formation_stack_records
| Name | Datatype | Description |
|---|---|---|
name | string | The name of the CloudFormation stack record. It starts with CloudFormationStackRecord followed by a GUID. (pattern: <code>\w[\w-]*\w</code>) |
arn | string | The Amazon Resource Name (ARN) of the CloudFormation stack record. (pattern: <code>.\S.</code>) |
created_at | string (date-time) | The date when the CloudFormation stack record was created. |
destination_info | object | A list of objects describing the destination service, which is AWS CloudFormation, and the Amazon Resource Name (ARN) of the AWS CloudFormation stack. |
location | object | A list of objects describing the Availability Zone and Amazon Web Services Region of the CloudFormation stack record. |
resource_type | string | The 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_info | array | A list of objects describing the source of the CloudFormation stack record. |
state | string | The current state of the CloudFormation stack record. (Started, Succeeded, Failed) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_cloud_formation_stack_records | select | region | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_cloud_formation_stack_records
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
;