ExitAmazon RDS: reading relational data for ML pipelines1 / 9
Explanation

Connect to the database, not just the AWS service

How pipelines connect securely to RDS and extract relational records through filtered, batched SQL reads without overloading the source database. · associate

An ML extraction job reads RDS tables through the database engine's SQL connection, using its endpoint, port, database name, and an engine-compatible driver such as a JDBC driver. Permission to call RDS management APIs does not grant permission to read table rows.

Keep the database private. Give the job network access through the VPC, and allow the database port from the job's security group in the database's security group. Use TLS with certificate verification and a database user granted only the required reads. The job's IAM role can retrieve that user's credentials from AWS Secrets Manager; do not embed passwords in code or logs.

This example uses a VPC-connected AWS Glue job and an RDS for PostgreSQL read replica. Configure its private-subnet access to Secrets Manager and S3 through suitable endpoints or outbound connectivity. The diagram shows the secret lookup request, SQL requests and results, and output writes; other replies are omitted.

Pipeline VPC
Private subnets
Secret lookupBounded SQLResult batchesExtracted records
AWS GlueVPC-connected extraction job
AWS Secrets ManagerRead-only database credentials
Amazon RDSRDS for PostgreSQL read replica
Amazon S3 bucketExtracted dataset

1 / 6 The Glue job is the SQL client. Its VPC connection supplies the network interfaces used to reach private database addresses.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.