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.
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.