Description
CloudFormation gives a new AWS::DMS::ReplicationInstance a public IP when PubliclyAccessible is true or omitted. This controls addressing on the replication instance. Routes and network rules determine which clients can reach it.
Potential impact
A public IP with permissive rules can leave services on the replication instance reachable from unintended networks. Migration data and credentials still have separate access controls. Temporary instances and rules can leave paths open after migration.
Remediation
If both endpoints are reachable without a public IP, set PubliclyAccessible: false. Configure the necessary subnets and routes, and restrict security groups and network ACLs to the traffic each endpoint needs. Changing this property replaces the instance. Plan for task continuity and test connections to both endpoints before retiring the old instance and rules.
Examples
Both templates use the same replication-instance identifier. To test a replacement while the old instance is still running, give the new instance a different identifier. Select a supported engine version in place of 3.4.3 and supply the subnet and security-group settings.
Using a public IP
Resources:
ReplicationInstance:
Type: "AWS::DMS::ReplicationInstance"
Properties:
ReplicationInstanceIdentifier: my-replication-instance
ReplicationInstanceClass: dms.r5.large
AllocatedStorage: 100
EngineVersion: "3.4.3"
PubliclyAccessible: true
Without a public IP
Resources:
ReplicationInstance:
Type: "AWS::DMS::ReplicationInstance"
Properties:
ReplicationInstanceIdentifier: my-replication-instance
ReplicationInstanceClass: dms.r5.large
AllocatedStorage: 100
EngineVersion: "3.4.3"
PubliclyAccessible: false
Explanation:
- First example:
trueassigns a public IP. Check the routes and rules that actually permit traffic. - Second example:
falseremoves public addressing from the replacement instance. Verify the path it uses to each endpoint.