AWS CloudFormation
User Guide (Version )

AWS::DMS::ReplicationTask

The AWS::DMS::ReplicationTask resource creates an AWS DMS replication task.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::DMS::ReplicationTask", "Properties" : { "CdcStartTime" : Double, "MigrationType" : String, "ReplicationInstanceArn" : String, "ReplicationTaskIdentifier" : String, "ReplicationTaskSettings" : String, "SourceEndpointArn" : String, "TableMappings" : String, "Tags" : [ Tag, ... ], "TargetEndpointArn" : String } }

YAML

Type: AWS::DMS::ReplicationTask Properties: CdcStartTime: Double MigrationType: String ReplicationInstanceArn: String ReplicationTaskIdentifier: String ReplicationTaskSettings: String SourceEndpointArn: String TableMappings: String Tags: - Tag TargetEndpointArn: String

Properties

CdcStartTime

Indicates the start time for a change data capture (CDC) operation.

Required: No

Type: Double

Update requires: No interruption

MigrationType

The migration type. Valid values: full-load | cdc | full-load-and-cdc

Required: Yes

Type: String

Allowed Values: cdc | full-load | full-load-and-cdc

Update requires: No interruption

ReplicationInstanceArn

The Amazon Resource Name (ARN) of a replication instance.

Required: Yes

Type: String

Update requires: Replacement

ReplicationTaskIdentifier

An identifier for the replication task.

Constraints:

  • Must contain from 1 to 255 alphanumeric characters or hyphens.

  • First character must be a letter.

  • Cannot end with a hyphen or contain two consecutive hyphens.

Required: No

Type: String

Update requires: No interruption

ReplicationTaskSettings

Overall settings for the task, in JSON format. For more information, see Task Settings in the AWS Database Migration User Guide.

Required: No

Type: String

Update requires: No interruption

SourceEndpointArn

An Amazon Resource Name (ARN) that uniquely identifies the source endpoint.

Required: Yes

Type: String

Update requires: Replacement

TableMappings

The table mappings for the task, in JSON format. For more information, see Table Mapping in the AWS Database Migration User Guide.

Required: Yes

Type: String

Update requires: No interruption

Tags

One or more tags to be assigned to the replication task.

Required: No

Type: List of Tag

Update requires: Replacement

TargetEndpointArn

An Amazon Resource Name (ARN) that uniquely identifies the target endpoint.

Required: Yes

Type: String

Update requires: Replacement

Return Values

Ref

When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the replication task ARN.

For more information about using the Ref function, see Ref.

Examples

JSON

{ "AWSTemplateFormatVersion": "2010-09-09", "Resources": { "myReplicationTask": { "Type": "AWS::DMS::ReplicationTask", "Properties": { "SourceEndpointArn": 11, "TargetEndpointArn": "12ff", "ReplicationInstanceArn": "ert1", "MigrationType": "full-load", "TableMappings": "{ \"rules\": [ { \"rule-type\": \"selection\", \"rule-id\": \"1\", \"rule-name\": \"1\", \"object-locator\": { \"schema-name\": \"%\", \"table-name\": \"%\" }, \"rule-action\": \"include\" } ] }" } } } }

YAML

AWSTemplateFormatVersion: 2010-09-09 Resources: myReplicationTask: Properties: MigrationType: full-load ReplicationInstanceArn: ReplicationInstance SourceEndpointArn: SourceEndpoint TableMappings: "{ \"rules\": [ { \"rule-type\": \"selection\", \"rule-id\": \"1\", \"rule-name\": \"1\", \"object-locator\": { \"schema-name\": \"%\", \"table-name\": \"%\" }, \"rule-action\": \"include\" } ] }" TargetEndpointArn: TargetEndpoint Type: "AWS::DMS::ReplicationTask"

See Also