Skip to main content

replication_configs

Creates, updates, deletes or gets a replication_config resource or lists replication_configs in a region

Overview

Namereplication_configs
TypeResource
DescriptionA replication configuration that you later provide to configure and start a AWS DMS Serverless replication
Idaws.dms.replication_configs

Fields

NameDatatypeDescription
replication_config_identifierstringA unique identifier of replication configuration
replication_config_arnstringThe Amazon Resource Name (ARN) of the Replication Config
source_endpoint_arnstringThe Amazon Resource Name (ARN) of the source endpoint for this AWS DMS Serverless replication configuration
target_endpoint_arnstringThe Amazon Resource Name (ARN) of the target endpoint for this AWS DMS Serverless replication configuration
replication_typestringThe type of AWS DMS Serverless replication to provision using this replication configuration
compute_configobjectConfiguration parameters for provisioning a AWS DMS Serverless replication
replication_settingsobjectJSON settings for Servereless replications that are provisioned using this replication configuration
supplemental_settingsobjectJSON settings for specifying supplemental data
resource_identifierstringA unique value or name that you get set for a given resource that can be used to construct an Amazon Resource Name (ARN) for that resource
table_mappingsobjectJSON table mappings for AWS DMS Serverless replications that are provisioned using this replication configuration
tagsarray

Contains a map of the key-value pairs for the resource tag or tags assigned to the dataset.

regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTregion
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all replication_configs in a region.

SELECT
region,
replication_config_identifier,
replication_config_arn,
source_endpoint_arn,
target_endpoint_arn,
replication_type,
compute_config,
replication_settings,
supplemental_settings,
resource_identifier,
table_mappings,
tags
FROM aws.dms.replication_configs
WHERE region = 'us-east-1';

Gets all properties from an individual replication_config.

SELECT
region,
replication_config_identifier,
replication_config_arn,
source_endpoint_arn,
target_endpoint_arn,
replication_type,
compute_config,
replication_settings,
supplemental_settings,
resource_identifier,
table_mappings,
tags
FROM aws.dms.replication_configs
WHERE region = 'us-east-1' AND data__Identifier = '<ReplicationConfigArn>';

INSERT example

Use the following StackQL query and manifest file to create a new replication_config resource, using stack-deploy.

/*+ create */
INSERT INTO aws.dms.replication_configs (
ReplicationConfigIdentifier,
ReplicationConfigArn,
SourceEndpointArn,
TargetEndpointArn,
ReplicationType,
ComputeConfig,
ReplicationSettings,
SupplementalSettings,
ResourceIdentifier,
TableMappings,
Tags,
region
)
SELECT
'{{ ReplicationConfigIdentifier }}',
'{{ ReplicationConfigArn }}',
'{{ SourceEndpointArn }}',
'{{ TargetEndpointArn }}',
'{{ ReplicationType }}',
'{{ ComputeConfig }}',
'{{ ReplicationSettings }}',
'{{ SupplementalSettings }}',
'{{ ResourceIdentifier }}',
'{{ TableMappings }}',
'{{ Tags }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.dms.replication_configs
WHERE data__Identifier = '<ReplicationConfigArn>'
AND region = 'us-east-1';

Permissions

To operate on the replication_configs resource, the following permissions are required:

Create

dms:CreateReplicationConfig,
dms:AddTagsToResource,
dms:ListTagsForResource,
iam:CreateServiceLinkedRole,
iam:AttachRolePolicy,
iam:PutRolePolicy,
iam:UpdateRoleDescription

Read

dms:DescribeReplicationConfigs,
dms:ListTagsForResource

Update

dms:ModifyReplicationConfig,
dms:AddTagsToResource,
dms:RemoveTagsToResource,
dms:ListTagsForResource,
iam:CreateServiceLinkedRole,
iam:AttachRolePolicy,
iam:PutRolePolicy,
iam:UpdateRoleDescription

List

dms:DescribeReplicationConfigs,
dms:ListTagsForResource

Delete

dms:DescribeReplicationConfigs,
dms:DeleteReplicationConfig,
dms:ListTagsForResource,
iam:DeleteServiceLinkedRole,
iam:GetServiceLinkedRoleDeletionStatus