Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 14 additions & 12 deletions dms/dms.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
AWSTemplateFormatVersion: '2010-09-09'
Description: This CloudFormation sample template DMSAuroraToS3FullLoadAndOngoingReplication
creates an Aurora RDS instance and DMS instance in a VPC, and a S3 bucket. The Aurora
RDS instance is configured as the DMS Source Endpoint and the S3 bucket is configured
Description: >-
This CloudFormation sample template DMSAuroraToS3FullLoadAndOngoingReplication creates
an Aurora RDS instance and DMS instance in a VPC, and a S3 bucket. The Aurora RDS
instance is configured as the DMS Source Endpoint and the S3 bucket is configured
as the DMS Target Endpoint. A DMS task is created and configured to migrate existing
data and replicate ongoing changes from the source endpoint to the target endpoint.
You will be billed for the AWS resources used if you create a stack from this template.
Parameters:
ClientIP:
Description: The IP address range that can be used to connect to the RDS instances
from your local machine. It must be a valid IP CIDR range of the form x.x.x.x/x.
Pls get your address using checkip.amazonaws.com or whatsmyip.org
Description: >-
The IP address range that can be used to connect to the RDS instances from your
local machine. It must be a valid IP CIDR range of the form x.x.x.x/x. Pls get
your address using checkip.amazonaws.com or whatsmyip.org
Type: String
MinLength: '9'
MaxLength: '18'
Expand Down Expand Up @@ -257,7 +259,7 @@ Resources:
Type: AWS::DMS::ReplicationInstance
Properties:
AvailabilityZone: !GetAtt 'DBSubnet1.AvailabilityZone'
PubliclyAccessible: true
PubliclyAccessible: false
ReplicationInstanceClass: dms.t2.small
ReplicationInstanceIdentifier: aurora-s3-repinstance-sampledb
ReplicationSubnetGroupIdentifier: !Ref 'DMSReplicationSubnetGroup'
Expand Down Expand Up @@ -297,11 +299,11 @@ Resources:
Properties:
MigrationType: full-load-and-cdc
ReplicationInstanceArn: !Ref 'DMSReplicationInstance'
ReplicationTaskSettings: '{ "Logging" : { "EnableLogging" : true, "LogComponents":
[ { "Id" : "SOURCE_UNLOAD", "Severity" : "LOGGER_SEVERITY_DEFAULT" }, { "Id"
: "SOURCE_CAPTURE", "Severity" : "LOGGER_SEVERITY_DEFAULT" }, { "Id" : "TARGET_LOAD",
"Severity" : "LOGGER_SEVERITY_DEFAULT" }, { "Id" : "TARGET_APPLY", "Severity"
: "LOGGER_SEVERITY_DEFAULT" } ] } }'
ReplicationTaskSettings: >-
{ "Logging" : { "EnableLogging" : true, "LogComponents": [ { "Id" : "SOURCE_UNLOAD",
"Severity" : "LOGGER_SEVERITY_DEFAULT" }, { "Id" : "SOURCE_CAPTURE", "Severity"
: "LOGGER_SEVERITY_DEFAULT" }, { "Id" : "TARGET_LOAD", "Severity" : "LOGGER_SEVERITY_DEFAULT"
}, { "Id" : "TARGET_APPLY", "Severity" : "LOGGER_SEVERITY_DEFAULT" } ] } }
SourceEndpointArn: !Ref 'AuroraSourceEndpoint'
TableMappings: '{ "rules": [ { "rule-type" : "selection", "rule-id" : "1", "rule-name"
: "1", "object-locator" : { "schema-name" : "dms_sample", "table-name" : "%"
Expand Down