pip install boto
python
import boto.rds2
python
access_key = 'YOUR_ACCESS_KEY'
secret_key = 'YOUR_SECRET_KEY'
region = 'us-west-1'
db_instance_id = 'YOUR_DB_INSTANCE_ID'
python
conn = boto.rds2.connect_to_region(region_name=region,
aws_access_key_id=access_key,
aws_secret_access_key=secret_key)
python
db_instances = conn.describe_db_instances(db_instance_id)
if len(db_instances['DescribeDBInstancesResponse']['DescribeDBInstancesResult']['DBInstances']) > 0:
else: