AWS Database Migration Service (DMS) endpoints without SSL encryption leave sensitive data exposed during transmission between source and target databases. When SSL mode is set to none, database credentials and data are transmitted in plaintext, potentially allowing attackers to intercept and capture confidential information. To secure your endpoints, ensure the ssl_mode parameter is set to require rather than none, as shown below:
resource"aws_dms_endpoint""good_example_source"{endpoint_id="example-source"endpoint_type="source"engine_name="mysql"ssl_mode="require" # ✅ SSL is enabled
}resource"aws_dms_endpoint""good_example_target"{endpoint_id="example-target"endpoint_type="target"engine_name="postgres"ssl_mode="require" # ✅ SSL is enabled
}
resource"aws_dms_endpoint""good_example_exempt_source"{endpoint_id="example-source-s3"endpoint_type="source"engine_name="s3"ssl_mode="none" # ✅ S3 source is exempt
}resource"aws_dms_endpoint""good_example_exempt_target"{endpoint_id="example-target-kinesis"endpoint_type="target"engine_name="kinesis"ssl_mode="none" # ✅ Kinesis target is exempt
}
Non-Compliant Code Examples
resource"aws_dms_endpoint""bad_example_source"{endpoint_id="example-source"endpoint_type="source"engine_name="mysql"ssl_mode="none" # ❌ SSL is disabled for a non-exempt source endpoint
}resource"aws_dms_endpoint""bad_example_target"{endpoint_id="example-target"endpoint_type="target"engine_name="postgres"ssl_mode="none" # ❌ SSL is disabled for a non-exempt target endpoint
}
1
2
rulesets:- Terraform / AWS # Rules to enforce / AWS.
個別デモのリクエスト
Datadogを開始
Ask AI
AI-generated responses may be inaccurate. Verify important info.