1 Answer
- Newest
- Most votes
- Most comments
1
You'll need the boto3 library.
AWS gives some sample Python code to connect to MariaDB/MySQL and to PostgeSQL at https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.Connecting.Python.html
As you say you are new to this, be sure that you read the link to the page about Credentials, and you'll also need a basic understanding of IAM.
Once connected, database queries and extracting data should be like working with any other database.
Relevant content
- asked 3 years ago
- AWS OFFICIALUpdated 2 months ago

thank you, I don't understand why we need to generate a token , to access this and based on the link you provided , where do i find the path to the ssl certificate for rds. I'm using aurora serverless (postgresql compatible) and have a rds proxy as well. . alternatively, can we use psycopg2 library for python? My app is python based and plan to run in some ec2 container or via ECS service. any examples you can point me to?