Using Console
Using CLI
YOUR_SECURITY_GROUP_ID
with the actual security group ID associated with the DMS replication instance.0.0.0.0/0
.By following these steps, you can remediate the DMS replication being public for AWS RDS using AWS CLI.Using Python
modify_replication_instance
method in Boto3 to update the instance’s PubliclyAccessible
parameter to False
.remediate_public_dms.py
.PubliclyAccessible
parameter for each instance.