Skip to main content

launch_configuration_templates

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

Overview

Namelaunch_configuration_templates
TypeResource
Idaws.mgn.launch_configuration_templates

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringARN of the Launch Configuration Template.
associate_public_ip_addressbooleanAssociate public Ip address.
boot_modestringLaunch configuration template boot mode. (LEGACY_BIOS, UEFI, USE_SOURCE)
copy_private_ipbooleanCopy private Ip.
copy_tagsbooleanCopy tags.
ec_2_launch_template_idstringEC2 launch template ID. (pattern: <code>lt-[0-9a-z]{17}</code>)
enable_map_auto_taggingbooleanEnable map auto tagging.
enable_parameters_encryptionbooleanEnable parameters encryption.
large_volume_confobjectLaunch template disk configuration.
launch_configuration_template_idstringID of the Launch Configuration Template. (pattern: <code>lct-[0-9a-zA-Z]{17}</code>)
launch_dispositionstringLaunch disposition. (STOPPED, STARTED)
licensingobjectConfigure Licensing.
map_auto_tagging_mpe_idstringLaunch configuration template map auto tagging MPE ID.
parameters_encryption_keystringParameters encryption key.
post_launch_actionsobjectPost Launch Actions to executed on the Test or Cutover instance.
small_volume_confobjectLaunch template disk configuration.
small_volume_max_sizeinteger (int64)Small volume maximum size.
tagsobjectTags of the Launch Configuration Template.
target_instance_type_right_sizing_methodstringTarget instance type right-sizing method. (NONE, BASIC)

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,
associate_public_ip_address,
boot_mode,
copy_private_ip,
copy_tags,
ec_2_launch_template_id,
enable_map_auto_tagging,
enable_parameters_encryption,
large_volume_conf,
launch_configuration_template_id,
launch_disposition,
licensing,
map_auto_tagging_mpe_id,
parameters_encryption_key,
post_launch_actions,
small_volume_conf,
small_volume_max_size,
tags,
target_instance_type_right_sizing_method
FROM aws.mgn.launch_configuration_templates
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a new Launch Configuration Template.

INSERT INTO aws.mgn.launch_configuration_templates (
postLaunchActions,
enableMapAutoTagging,
mapAutoTaggingMpeID,
tags,
launchDisposition,
targetInstanceTypeRightSizingMethod,
copyPrivateIp,
associatePublicIpAddress,
copyTags,
licensing,
bootMode,
smallVolumeMaxSize,
smallVolumeConf,
largeVolumeConf,
enableParametersEncryption,
parametersEncryptionKey,
region
)
SELECT
'{{ postLaunchActions }}',
{{ enableMapAutoTagging }},
'{{ mapAutoTaggingMpeID }}',
'{{ tags }}',
'{{ launchDisposition }}',
'{{ targetInstanceTypeRightSizingMethod }}',
{{ copyPrivateIp }},
{{ associatePublicIpAddress }},
{{ copyTags }},
'{{ licensing }}',
'{{ bootMode }}',
{{ smallVolumeMaxSize }},
'{{ smallVolumeConf }}',
'{{ largeVolumeConf }}',
{{ enableParametersEncryption }},
'{{ parametersEncryptionKey }}',
'{{ region }}'
RETURNING
arn,
associate_public_ip_address,
boot_mode,
copy_private_ip,
copy_tags,
ec_2_launch_template_id,
enable_map_auto_tagging,
enable_parameters_encryption,
large_volume_conf,
launch_configuration_template_id,
launch_disposition,
licensing,
map_auto_tagging_mpe_id,
parameters_encryption_key,
post_launch_actions,
small_volume_conf,
small_volume_max_size,
tags,
target_instance_type_right_sizing_method
;

UPDATE examples

Updates an existing Launch Configuration Template by ID.

UPDATE aws.mgn.launch_configuration_templates
SET
launchConfigurationTemplateID = '{{ launchConfigurationTemplateID }}',
postLaunchActions = '{{ postLaunchActions }}',
enableMapAutoTagging = {{ enableMapAutoTagging }},
mapAutoTaggingMpeID = '{{ mapAutoTaggingMpeID }}',
launchDisposition = '{{ launchDisposition }}',
targetInstanceTypeRightSizingMethod = '{{ targetInstanceTypeRightSizingMethod }}',
copyPrivateIp = {{ copyPrivateIp }},
associatePublicIpAddress = {{ associatePublicIpAddress }},
copyTags = {{ copyTags }},
licensing = '{{ licensing }}',
bootMode = '{{ bootMode }}',
smallVolumeMaxSize = {{ smallVolumeMaxSize }},
smallVolumeConf = '{{ smallVolumeConf }}',
largeVolumeConf = '{{ largeVolumeConf }}',
enableParametersEncryption = {{ enableParametersEncryption }},
parametersEncryptionKey = '{{ parametersEncryptionKey }}'
WHERE
region = '{{ region }}' --required
AND launchConfigurationTemplateID = '{{ launchConfigurationTemplateID }}' --required
RETURNING
arn,
associate_public_ip_address,
boot_mode,
copy_private_ip,
copy_tags,
ec_2_launch_template_id,
enable_map_auto_tagging,
enable_parameters_encryption,
large_volume_conf,
launch_configuration_template_id,
launch_disposition,
licensing,
map_auto_tagging_mpe_id,
parameters_encryption_key,
post_launch_actions,
small_volume_conf,
small_volume_max_size,
tags,
target_instance_type_right_sizing_method;

DELETE examples

Deletes a single Launch Configuration Template by ID.

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