Skip to main content

launch_configuration_templates

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

Overview

Namelaunch_configuration_templates
TypeResource
Idaws.drs.launch_configuration_templates

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringARN of the Launch Configuration Template. (pattern: <code>arn:.{16,2044}</code>)
copy_private_ipbooleanCopy private IP.
copy_tagsbooleanCopy tags.
export_bucket_arnstringS3 bucket ARN to export Source Network templates. (pattern: <code>arn:.{16,2044}</code>)
launch_configuration_template_idstringID of the Launch Configuration Template. (pattern: <code>lct-[0-9a-zA-Z]{17}</code>)
launch_dispositionstringLaunch disposition. (STOPPED, STARTED)
launch_into_source_instancebooleanDRS will set the 'launch into instance ID' of any source server when performing a drill, recovery or failback to the previous region or availability zone, using the instance ID of the source instance.
licensingobjectConfiguration of a machine's license.
post_launch_enabledbooleanPost-launch actions activated.
recovery_modestringRecovery mode to use during launch. FAST skips conversion to reduce recovery time. OPTIMAL runs full conversion for maximum compatibility. (FAST, OPTIMAL)
tagsobjectTags of the Launch Configuration Template.
target_instance_type_right_sizing_methodstringTarget instance type right-sizing method. (NONE, BASIC, IN_AWS)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_launch_configuration_templatesselectregionLists all Launch Configuration Templates, filtered by Launch Configuration Template IDs
create_launch_configuration_templateinsertregionCreates a new Launch Configuration Template.
update_launch_configuration_templateupdateregion, launchConfigurationTemplateIDUpdates an existing Launch Configuration Template by ID.
delete_launch_configuration_templatedeleteregionDeletes a single Launch Configuration Template by ID.

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

Lists all Launch Configuration Templates, filtered by Launch Configuration Template IDs

SELECT
arn,
copy_private_ip,
copy_tags,
export_bucket_arn,
launch_configuration_template_id,
launch_disposition,
launch_into_source_instance,
licensing,
post_launch_enabled,
recovery_mode,
tags,
target_instance_type_right_sizing_method
FROM aws.drs.launch_configuration_templates
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a new Launch Configuration Template.

INSERT INTO aws.drs.launch_configuration_templates (
tags,
launchDisposition,
targetInstanceTypeRightSizingMethod,
copyPrivateIp,
copyTags,
licensing,
exportBucketArn,
postLaunchEnabled,
launchIntoSourceInstance,
recoveryMode,
region
)
SELECT
'{{ tags }}',
'{{ launchDisposition }}',
'{{ targetInstanceTypeRightSizingMethod }}',
{{ copyPrivateIp }},
{{ copyTags }},
'{{ licensing }}',
'{{ exportBucketArn }}',
{{ postLaunchEnabled }},
{{ launchIntoSourceInstance }},
'{{ recoveryMode }}',
'{{ region }}'
RETURNING
launch_configuration_template
;

UPDATE examples

Updates an existing Launch Configuration Template by ID.

UPDATE aws.drs.launch_configuration_templates
SET
launchConfigurationTemplateID = '{{ launchConfigurationTemplateID }}',
launchDisposition = '{{ launchDisposition }}',
targetInstanceTypeRightSizingMethod = '{{ targetInstanceTypeRightSizingMethod }}',
copyPrivateIp = {{ copyPrivateIp }},
copyTags = {{ copyTags }},
licensing = '{{ licensing }}',
exportBucketArn = '{{ exportBucketArn }}',
postLaunchEnabled = {{ postLaunchEnabled }},
launchIntoSourceInstance = {{ launchIntoSourceInstance }},
recoveryMode = '{{ recoveryMode }}'
WHERE
region = '{{ region }}' --required
AND launchConfigurationTemplateID = '{{ launchConfigurationTemplateID }}' --required
RETURNING
launch_configuration_template;

DELETE examples

Deletes a single Launch Configuration Template by ID.

DELETE FROM aws.drs.launch_configuration_templates
WHERE region = '{{ region }}' --required
;