Skip to main content

replication_configuration_templates

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

Overview

Namereplication_configuration_templates
TypeResource
Idaws.drs.replication_configuration_templates

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Replication Configuration Template ARN. (pattern: <code>arn:.{16,2044}</code>)
associate_default_security_groupbooleanWhether to associate the default Elastic Disaster Recovery Security group with the Replication Configuration Template.
auto_replicate_new_disksbooleanWhether to allow the AWS replication agent to automatically replicate newly added disks.
bandwidth_throttlinginteger (int64)Configure bandwidth throttling for the outbound data transfer rate of the Source Server in Mbps.
create_public_ipbooleanWhether to create a Public IP for the Recovery Instance by default.
data_plane_routingstringThe data plane routing mechanism that will be used for replication. (PRIVATE_IP, PUBLIC_IP)
default_large_staging_disk_typestringThe Staging Disk EBS volume type to be used during replication. (GP2, GP3, ST1, AUTO)
ebs_encryptionstringThe type of EBS encryption to be used during replication. (DEFAULT, CUSTOM, NONE)
ebs_encryption_key_arnstringThe ARN of the EBS encryption key to be used during replication. (pattern: <code>arn:.{16,2044}</code>)
internet_protocolstringWhich version of the Internet Protocol to use for replication of data. (IPv4 or IPv6) (IPV4, IPV6)
pit_policyarrayThe Point in time (PIT) policy to manage snapshots taken during replication.
replication_configuration_template_idstringThe Replication Configuration Template ID. (pattern: <code>rct-[0-9a-zA-Z]{17}</code>)
replication_server_instance_typestringThe instance type to be used for the replication server.
replication_servers_security_groups_idsarrayThe security group IDs that will be used by the replication server.
staging_area_subnet_idstringThe subnet to be used by the replication staging area. (pattern: <code>subnet-[0-9a-fA-F]{8,}</code>)
staging_area_tagsobjectA set of tags to be associated with all resources created in the replication staging area: EC2 replication server, EBS volumes, EBS snapshots, etc.
tagsobjectA set of tags to be associated with the Replication Configuration Template resource.
use_dedicated_replication_serverbooleanWhether to use a dedicated Replication Server in the replication staging area.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_replication_configuration_templatesselectregionLists all ReplicationConfigurationTemplates, filtered by Source Server IDs.
create_replication_configuration_templateinsertregion, stagingAreaSubnetId, replicationServersSecurityGroupsIDs, ebsEncryption, bandwidthThrottling, stagingAreaTags, pitPolicyCreates a new ReplicationConfigurationTemplate.
update_replication_configuration_templateupdateregion, replicationConfigurationTemplateIDUpdates a ReplicationConfigurationTemplate by ID.
delete_replication_configuration_templatedeleteregionDeletes a single Replication 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 ReplicationConfigurationTemplates, filtered by Source Server IDs.

SELECT
arn,
associate_default_security_group,
auto_replicate_new_disks,
bandwidth_throttling,
create_public_ip,
data_plane_routing,
default_large_staging_disk_type,
ebs_encryption,
ebs_encryption_key_arn,
internet_protocol,
pit_policy,
replication_configuration_template_id,
replication_server_instance_type,
replication_servers_security_groups_ids,
staging_area_subnet_id,
staging_area_tags,
tags,
use_dedicated_replication_server
FROM aws.drs.replication_configuration_templates
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a new ReplicationConfigurationTemplate.

INSERT INTO aws.drs.replication_configuration_templates (
stagingAreaSubnetId,
associateDefaultSecurityGroup,
replicationServersSecurityGroupsIDs,
replicationServerInstanceType,
useDedicatedReplicationServer,
defaultLargeStagingDiskType,
ebsEncryption,
ebsEncryptionKeyArn,
bandwidthThrottling,
dataPlaneRouting,
createPublicIP,
stagingAreaTags,
pitPolicy,
tags,
autoReplicateNewDisks,
internetProtocol,
region
)
SELECT
'{{ stagingAreaSubnetId }}' /* required */,
{{ associateDefaultSecurityGroup }},
'{{ replicationServersSecurityGroupsIDs }}' /* required */,
'{{ replicationServerInstanceType }}',
{{ useDedicatedReplicationServer }},
'{{ defaultLargeStagingDiskType }}',
'{{ ebsEncryption }}' /* required */,
'{{ ebsEncryptionKeyArn }}',
{{ bandwidthThrottling }} /* required */,
'{{ dataPlaneRouting }}',
{{ createPublicIP }},
'{{ stagingAreaTags }}' /* required */,
'{{ pitPolicy }}' /* required */,
'{{ tags }}',
{{ autoReplicateNewDisks }},
'{{ internetProtocol }}',
'{{ region }}'
RETURNING
arn,
associate_default_security_group,
auto_replicate_new_disks,
bandwidth_throttling,
create_public_ip,
data_plane_routing,
default_large_staging_disk_type,
ebs_encryption,
ebs_encryption_key_arn,
internet_protocol,
pit_policy,
replication_configuration_template_id,
replication_server_instance_type,
replication_servers_security_groups_ids,
staging_area_subnet_id,
staging_area_tags,
tags,
use_dedicated_replication_server
;

UPDATE examples

Updates a ReplicationConfigurationTemplate by ID.

UPDATE aws.drs.replication_configuration_templates
SET
replicationConfigurationTemplateID = '{{ replicationConfigurationTemplateID }}',
arn = '{{ arn }}',
stagingAreaSubnetId = '{{ stagingAreaSubnetId }}',
associateDefaultSecurityGroup = {{ associateDefaultSecurityGroup }},
replicationServersSecurityGroupsIDs = '{{ replicationServersSecurityGroupsIDs }}',
replicationServerInstanceType = '{{ replicationServerInstanceType }}',
useDedicatedReplicationServer = {{ useDedicatedReplicationServer }},
defaultLargeStagingDiskType = '{{ defaultLargeStagingDiskType }}',
ebsEncryption = '{{ ebsEncryption }}',
ebsEncryptionKeyArn = '{{ ebsEncryptionKeyArn }}',
bandwidthThrottling = {{ bandwidthThrottling }},
dataPlaneRouting = '{{ dataPlaneRouting }}',
createPublicIP = {{ createPublicIP }},
stagingAreaTags = '{{ stagingAreaTags }}',
pitPolicy = '{{ pitPolicy }}',
autoReplicateNewDisks = {{ autoReplicateNewDisks }},
internetProtocol = '{{ internetProtocol }}'
WHERE
region = '{{ region }}' --required
AND replicationConfigurationTemplateID = '{{ replicationConfigurationTemplateID }}' --required
RETURNING
arn,
associate_default_security_group,
auto_replicate_new_disks,
bandwidth_throttling,
create_public_ip,
data_plane_routing,
default_large_staging_disk_type,
ebs_encryption,
ebs_encryption_key_arn,
internet_protocol,
pit_policy,
replication_configuration_template_id,
replication_server_instance_type,
replication_servers_security_groups_ids,
staging_area_subnet_id,
staging_area_tags,
tags,
use_dedicated_replication_server;

DELETE examples

Deletes a single Replication Configuration Template by ID

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