Creating a DB instance

Create a new DB instance under your AWS account using the following code:

aws rds create-db-instance ^--db-instance-identifier "AWSBootcamp" ^--db-instance-class "db.t2.micro" ^--engine "MySQL" ^--no-multi-az ^--master-username "awsbootcamp" ^--master-user-password "abcd12345" ^--db-name "awsbootcampdb" ^--storage-type "gp2" ^--allocated-storage "20" ^--publicly-accessible ^--backup-retention-period "0" ^--vpc-security-group-ids "sg-e4248e91"

The following are the options, which can be used with create-db-instance:

Parameters

Optional

Descriptions

--engine

False

This is the database engine that needs to be used for creating the DB instance. The valid values are as follows:

  • aurora
  • aurora-postgresql

Get Amazon Web Services Bootcamp now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.