Deleting the RDS database instance

Finally, a database instance can be deleted by invoking the delete_db_instance() function call by passing the database instance identifier to it. 

The following code demonstrates how to delete a database instance:

#!/usr/bin/env python

import boto3

rds = boto3.client('rds')

try:
response = rds.delete_db_instance(
DBInstanceIdentifier="packtpub",
SkipFinalSnapshot=True)
print response
except Exception as error:
print error

This concludes the basic operations on the Amazon RDS instance using application programming.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.156.176