Skip to Content
Hybrid Cloud for Developers
book

Hybrid Cloud for Developers

by Manoj Hirway
April 2018
Intermediate to advanced content levelIntermediate to advanced
280 pages
8h 37m
English
Packt Publishing
Content preview from Hybrid Cloud for Developers

Creating an RDS instance

The RDS database instance can be created using the create_db_instance() function. It requires the parameters that define the instance such as instance identifier, master user name, master user password, instance class, type of database engine such as Oracle, MySQL, and so on, and the storage to be allocated to the instance.

The following Python code demonstrates the creation of a MySQL database instance with the name packtpub with 5 GB in size:

#!/usr/bin/env pythonimport boto3rds = boto3.client('rds')try:        response = rds.create_db_instance(        DBInstanceIdentifier='packtpub',        MasterUsername='dbadmin',        MasterUserPassword='password',        DBInstanceClass='db.t2.micro',        Engine='mysql',        AllocatedStorage=5)        print responseexcept ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hybrid Cloud for Architects

Hybrid Cloud for Architects

Alok Shrivastwa
OpenStack: Building a Cloud Environment

OpenStack: Building a Cloud Environment

Alok Shrivastwa, Sunil Sarat, Kevin Jackson, Cody Bunch, Egle Sigler, Tony Campbell

Publisher Resources

ISBN: 9781788830874Supplemental Content