diff --git a/dms/dms.yaml b/dms/dms.yaml index eccab50..78cf9c0 100644 --- a/dms/dms.yaml +++ b/dms/dms.yaml @@ -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' @@ -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' @@ -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" : "%"