Skip to content
VirtualLP Virtual Learning Platform
Amazon Web Services AWS-11 intermediate

Run a managed MySQL database on Amazon RDS: connect, query, snapshot and read replica

Create a private RDS for MySQL instance, discover why the first connection times out, fix the security group, build and query tables with the mysql client from CloudShell, take a snapshot and add a read-only read replica.

What you'll do

  • Create an RDS for MySQL instance with the right template, class and connectivity
  • Control database access with VPC security groups
  • Connect with the mysql client and run SQL
  • Protect data with snapshots
  • Scale reads with a read-only read replica

Lab tasks

  1. 1 Create the database shop-db
  2. 2 Wait until the instance is Available
  3. 3 Install the client and try to connect
  4. 4 Allow MySQL from inside the VPC
  5. 5 Connect, create a table and insert rows
  6. 6 Run a reporting query
  7. 7 Take a manual snapshot
  8. 8 Create a read replica
  9. 9 Read from the replica – and see writes refused