cloud_formation_stacks
Creates, updates, deletes, gets or lists a cloud_formation_stacks resource.
Overview
| Name | cloud_formation_stacks |
| Type | Resource |
| Id | aws.lightsail.cloud_formation_stacks |
Fields
The following fields are returned by SELECT queries:
SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
create_cloud_formation_stack | insert | region, instances | 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. 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. |
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) |
INSERT examples
- create_cloud_formation_stack
- Manifest
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. 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.
INSERT INTO aws.lightsail.cloud_formation_stacks (
instances,
region
)
SELECT
'{{ instances }}' /* required */,
'{{ region }}'
RETURNING
operations
;
# Description fields are for documentation purposes
- name: cloud_formation_stacks
props:
- name: region
value: "{{ region }}"
description: Required parameter for the cloud_formation_stacks resource.
- name: instances
description: |
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.
value:
- sourceName: "{{ sourceName }}"
instanceType: "{{ instanceType }}"
portInfoSource: "{{ portInfoSource }}"
userData: "{{ userData }}"
availabilityZone: "{{ availabilityZone }}"