I have created a process to export data from my MySQL database to AWS Glue DataBrew and then to AWS Glue. So, I'm able to create a crawler and and modify the data via AWS Glue Studio.
Now I want to write the data back to my MySQL database. The MySQL database is in a VPC network. But I'm having trouble connecting the MySQL database to AWS Glue since over 10 hours, after watching tutorials and reading the documentation.
What I did :
Following https://docs.aws.amazon.com/glue/latest/dg/setup-vpc-for-glue-access.html
Following https://www.youtube.com/watch?v=jX-lvUFJ2jI
Create a security group, assigned to the VPC ID with which my database is associated Type : All TCP, Destination : self-security-group
Assigned the new security group to my RDS instance
Added a VPC Endpoint to S3
Created a new IAM Role with following permission :
AmazonRDSFullAccess AmazonS3FullAccess AWSGlueServiceRole
Trusted entities :
glue.amazonaws.com
apigateway.amazonaws.com
rds.amazonaws.com
- Added the connection at AWS Glue to RDS
When I click on
Test connection
Select IAM role
Result : The connection cannot be established
Does anyone have a solutions ?
Thanks in advance !