Skip to main content

launch_configurations

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

Overview

Namelaunch_configurations
TypeResource
Idaws.drs.launch_configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the launch configuration.
copy_private_ipbooleanWhether we should copy the Private IP of the Source Server to the Recovery Instance.
copy_tagsbooleanWhether we want to copy the tags of the Source Server to the EC2 machine of the Recovery Instance.
ec_2_launch_template_idstringThe EC2 launch template ID of this launch configuration.
launch_dispositionstringThe state of the Recovery Instance in EC2 after the recovery operation. (STOPPED, STARTED)
launch_into_instance_propertiesobjectLaunch into existing instance properties.
licensingobjectConfiguration of a machine's license.
post_launch_enabledbooleanWhether we want to activate post-launch actions for the Source Server.
recovery_modestringRecovery mode to use during launch. FAST skips conversion to reduce recovery time. OPTIMAL runs full conversion for maximum compatibility. (FAST, OPTIMAL)
source_server_idstringThe ID of the Source Server for this launch configuration. (pattern: <code>s-[0-9a-zA-Z]{17}</code>)
target_instance_type_right_sizing_methodstringWhether Elastic Disaster Recovery should try to automatically choose the instance type that best matches the OS, CPU, and RAM of your Source Server. (NONE, BASIC, IN_AWS)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_launch_configurationselectregionGets a LaunchConfiguration, filtered by Source Server IDs.
update_launch_configurationupdateregion, sourceServerIDUpdates a LaunchConfiguration by Source Server 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

Gets a LaunchConfiguration, filtered by Source Server IDs.

SELECT
name,
copy_private_ip,
copy_tags,
ec_2_launch_template_id,
launch_disposition,
launch_into_instance_properties,
licensing,
post_launch_enabled,
recovery_mode,
source_server_id,
target_instance_type_right_sizing_method
FROM aws.drs.launch_configurations
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Updates a LaunchConfiguration by Source Server ID.

UPDATE aws.drs.launch_configurations
SET
sourceServerID = '{{ sourceServerID }}',
name = '{{ name }}',
launchDisposition = '{{ launchDisposition }}',
targetInstanceTypeRightSizingMethod = '{{ targetInstanceTypeRightSizingMethod }}',
copyPrivateIp = {{ copyPrivateIp }},
copyTags = {{ copyTags }},
licensing = '{{ licensing }}',
postLaunchEnabled = {{ postLaunchEnabled }},
launchIntoInstanceProperties = '{{ launchIntoInstanceProperties }}',
recoveryMode = '{{ recoveryMode }}'
WHERE
region = '{{ region }}' --required
AND sourceServerID = '{{ sourceServerID }}' --required
RETURNING
name,
copy_private_ip,
copy_tags,
ec_2_launch_template_id,
launch_disposition,
launch_into_instance_properties,
licensing,
post_launch_enabled,
recovery_mode,
source_server_id,
target_instance_type_right_sizing_method;