Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Connecting-to-RDS-using-SSL-in-Python
import mysql.connector
#CA Bundle file is provided on AWS documentation for RDS: http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html
#Link: https://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem
SSL_CA='rds-combined-ca-bundle.pem'
cnx = mysql.connector.connect(user='sequoia_usr_prod', password='iz8sVGk0TwYxKfJo',
host='sequoia-db-prod.cxtfi76qjanv.us-west-2.rds.amazonaws.com',
database='sequoia_db_prod', ssl_ca=SSL_CA)
cnx.close()
@nmagee

This comment has been minimized.

Copy link

@nmagee nmagee commented Nov 7, 2017

Thanks for this snippet, @Technowise -- very helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.