launch_configurations
Creates, updates, deletes, gets or lists a launch_configurations resource.
Overview
| Name | launch_configurations |
| Type | Resource |
| Id | aws.mgn.launch_configurations |
Fields
The following fields are returned by SELECT queries:
- get_launch_configuration
| Name | Datatype | Description |
|---|---|---|
name | string | Launch configuration name. |
boot_mode | string | Launch configuration boot mode. (LEGACY_BIOS, UEFI, USE_SOURCE) |
copy_private_ip | boolean | Copy Private IP during Launch Configuration. |
copy_tags | boolean | Copy Tags during Launch Configuration. |
ec_2_launch_template_id | string | Launch configuration EC2 Launch template ID. |
enable_map_auto_tagging | boolean | Enable map auto tagging. |
launch_disposition | string | Launch disposition for launch configuration. (STOPPED, STARTED) |
licensing | object | Configure Licensing. |
map_auto_tagging_mpe_id | string | Map auto tagging MPE ID. |
post_launch_actions | object | Post Launch Actions to executed on the Test or Cutover instance. |
source_server_id | string | Launch configuration Source Server ID. (pattern: <code>s-[0-9a-zA-Z]{17}</code>) |
target_instance_type_right_sizing_method | string | Launch configuration Target instance type right sizing method. (NONE, BASIC) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_launch_configuration | select | region | Lists all LaunchConfigurations available, filtered by Source Server IDs. | |
update_launch_configuration | update | region, sourceServerID | Updates 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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_launch_configuration
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
- update_launch_configuration
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;