MORE! :)
1.4 KiB
AWS Databases - MySQL DB
Objectives
- Create a MySQL database with the following properties
- Instance type: db.t2.micro
- gp2 storage
- Storage Auto scaling should be enabled and threshold should be set to 500 GiB
- Public access should be enabled
- Port should be set to 3306
- DB name: 'db'
- Backup retention: 10 days
- Create read replica for the database you've created
Solution
Console
-
Go to RDS service
-
Click on "Databases" in the left side menu and click on the "Create database" button
-
Choose "standard create"
-
Choose "MySQL" and the recommended version
-
Choose "Production" template
-
Specify DB instance identifier
-
Specify Credentials (master username and password)
-
Choose DB instance type: Burstable classes, db.t2.micro
-
Choose "gp2" as storage
-
Enable storage autoscalling: maximum storage threshold of 500 GiB
-
Choose "Do not create a standby instance"
-
Choose a default VPC and subnet
-
Check "Yes" for public access
-
Choose "No preference" for AZ
-
Database port should be 3306
-
For authentication, choose "Password and IAM database authentication"
-
Set initial database name as "db"
-
Increase backup retention period to 10 days
-
Click on "Create database" button
-
Go to the database under "Databases" in the left side menu
-
Click on "Actions" -> Create read replica
-
Click on "Create read replica"