liveBook · Manning

Database instance

As explained in Amazon Web Services in Action, Third Edition: An in-depth guide to AWS

A database instance is a provisioned runtime deployment of a database engine with allocated compute, memory, and storage resources.

A database instance is a provisioned runtime deployment of a database engine with allocated compute, memory, and storage. In Amazon RDS, the instance runs an engine such as MySQL and exposes an endpoint that applications use for SQL queries. section 10.1.1 section 10.1.2

Launching one involves provisioning the instance and then connecting an application to its endpoint. A WordPress deployment uses CloudFormation to create the RDS instance alongside web servers, while an EC2 host in the same VPC connects to it. section 10.1.1

Configure an RDS database instance with:

  • Private network access through a security group; internet exposure is possible but generally discouraged. section 10.1.1

Inspecting the endpoint

After provisioning, retrieve the endpoint and port with aws rds describe-db-instances --query "DBInstances[0].Endpoint". An application sends SQL such as SELECT * FROM table to that endpoint. section 10.1.2

RDS costs depend on the instance size and allocated storage, and cost more than an equivalent database on plain EC2. The managed service offsets that premium by handling installation, patching, upgrades, migration, backups, and recovery. section 10.1.3

How Amazon Web Services in Action, Third Edition: An in-depth guide to AWS covers it

How deep it goes
Explains provisioning, endpoint access, networking, configuration, and pricing, with SQL shown only as client traffic.
Examples
Uses a MySQL WordPress deployment, endpoint inspection, CloudFormation configuration, and a Discourse PostgreSQL architecture.
What it assumes
Assumes basic AWS networking and application concepts while introducing instance attributes, endpoints, and managed database operations.
What you can do after
Operate/configure an RDS instance, connect applications through its endpoint, and assess managed-service cost trade-offs.
How it connects
Connects Amazon RDS with CloudFormation, EC2, VPC, security groups, SQL, and web applications.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Amazon Web Services in Action, Third Edition: An in-depth guide to AWS. The section links point to the parts of the book it draws on.