Skip to main content

Triage and Remediation

Remediation

Using Console

To remediate the misconfiguration of Database Migration Service Endpoints not having SSL configuration for AWS RDS using the AWS console, follow these step-by-step instructions:
  1. Login to AWS Management Console: Go to the AWS Management Console at https://console.aws.amazon.com/.
  2. Navigate to RDS Service: Click on the “Services” dropdown menu at the top left corner, then select “RDS” under the Database category.
  3. Select the RDS Instance: From the list of RDS instances, select the instance for which you want to enable SSL configuration.
  4. Modify the RDS Instance: Click on the instance name to open its details page. Then, click on the “Modify” button at the top.
  5. Enable SSL: Scroll down to the “Network & Security” section, and locate the “Additional configuration” option. Here, you will find the “Enable IAM DB authentication” option. Enable this option by selecting the checkbox.
  6. Apply Changes: Scroll down to the bottom of the page and click on the “Continue” button.
  7. Review Changes: Review the changes you are about to make, and then click on the “Modify DB Instance” button to apply the changes.
  8. Verify SSL Configuration: Once the modification is complete, verify that the SSL configuration is enabled for the Database Migration Service Endpoints by connecting to the RDS instance using SSL.
By following these steps, you will successfully remediate the misconfiguration of Database Migration Service Endpoints not having SSL configuration for AWS RDS using the AWS console.

To remediate the misconfiguration of Database Migration Service endpoints not having SSL configuration for AWS RDS using the AWS CLI, follow these steps:
  1. Enable SSL for the RDS instance:
    • Run the following AWS CLI command to modify the RDS instance to enable SSL:
    • Replace YOUR_DB_INSTANCE_IDENTIFIER with the identifier of your RDS instance.
  2. Verify SSL configuration:
    • Confirm that SSL is enabled for the RDS instance by describing the instance using the following command:
    • Ensure that the Endpoint section includes the SSL: true attribute.
  3. Restart the RDS instance:
    • If the SSL configuration does not take effect immediately, you may need to restart the RDS instance. Run the following command:
    • This will trigger a reboot of the RDS instance to apply the SSL configuration changes.
  4. Verify SSL connection:
    • Test the SSL connection to the RDS instance using a database client that supports SSL connections. Ensure that the connection is successful and encrypted.
By following these steps, you can remediate the misconfiguration of Database Migration Service endpoints not having SSL configuration for AWS RDS using the AWS CLI.
To remediate the misconfiguration of Database Migration Service endpoints not having SSL configuration for AWS RDS using Python, you can follow these steps:
  1. Install the AWS SDK for Python (Boto3) if you haven’t already:
  1. Use the following Python script to enable SSL for your AWS RDS instance:
  1. Replace the placeholders (‘your_aws_region’, ‘your_rds_instance_identifier’, ‘your_security_group_id’, ‘your_master_password’) with your actual AWS region, RDS instance identifier, security group ID, and master password.
  2. Run the Python script to enable SSL configuration for your AWS RDS instance.
After following these steps, the SSL configuration for the Database Migration Service endpoints should be enabled for your AWS RDS instance.
This change updates the existing DMS endpoint in place; it does not force replacement, but DMS tasks using the endpoint will fail if the RDS instance does not accept SSL/TLS connections, so ensure RDS is configured for SSL before applying.For verification, terraform plan should show a single in-place update on the aws_dms_endpoint resource with ssl_mode changing from its previous value (e.g., "none") to "require".