Skip to main content

launch_configurations

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

Overview

Namelaunch_configurations
TypeResource
Idaws.mgn.launch_configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringLaunch configuration name.
boot_modestringLaunch configuration boot mode. (LEGACY_BIOS, UEFI, USE_SOURCE)
copy_private_ipbooleanCopy Private IP during Launch Configuration.
copy_tagsbooleanCopy Tags during Launch Configuration.
ec_2_launch_template_idstringLaunch configuration EC2 Launch template ID.
enable_map_auto_taggingbooleanEnable map auto tagging.
launch_dispositionstringLaunch disposition for launch configuration. (STOPPED, STARTED)
licensingobjectConfigure Licensing.
map_auto_tagging_mpe_idstringMap auto tagging MPE ID.
post_launch_actionsobjectPost Launch Actions to executed on the Test or Cutover instance.
source_server_idstringLaunch configuration Source Server ID. (pattern: <code>s-[0-9a-zA-Z]{17}</code>)
target_instance_type_right_sizing_methodstringLaunch configuration Target instance type right sizing method. (NONE, BASIC)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_launch_configurationselectregionLists all LaunchConfigurations available, filtered by Source Server IDs.
update_launch_configurationupdateregion, sourceServerIDUpdates multiple LaunchConfigurations by Source Server ID. bootMode valid values are LEGACY_BIOS | UEFI

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 LaunchConfigurations available, filtered by Source Server IDs.

SELECT
name,
boot_mode,
copy_private_ip,
copy_tags,
ec_2_launch_template_id,
enable_map_auto_tagging,
launch_disposition,
licensing,
map_auto_tagging_mpe_id,
post_launch_actions,
source_server_id,
target_instance_type_right_sizing_method
FROM aws.mgn.launch_configurations
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Updates multiple LaunchConfigurations by Source Server ID. bootMode valid values are LEGACY_BIOS | UEFI

UPDATE aws.mgn.launch_configurations
SET
sourceServerID = '{{ sourceServerID }}',
name = '{{ name }}',
launchDisposition = '{{ launchDisposition }}',
targetInstanceTypeRightSizingMethod = '{{ targetInstanceTypeRightSizingMethod }}',
copyPrivateIp = {{ copyPrivateIp }},
copyTags = {{ copyTags }},
licensing = '{{ licensing }}',
bootMode = '{{ bootMode }}',
postLaunchActions = '{{ postLaunchActions }}',
enableMapAutoTagging = {{ enableMapAutoTagging }},
mapAutoTaggingMpeID = '{{ mapAutoTaggingMpeID }}',
accountID = '{{ accountID }}'
WHERE
region = '{{ region }}' --required
AND sourceServerID = '{{ sourceServerID }}' --required
RETURNING
name,
boot_mode,
copy_private_ip,
copy_tags,
ec_2_launch_template_id,
enable_map_auto_tagging,
launch_disposition,
licensing,
map_auto_tagging_mpe_id,
post_launch_actions,
source_server_id,
target_instance_type_right_sizing_method;