A Lightsail managed database runs MySQL or PostgreSQL for you: AWS installs the engine, applies patches, and takes daily backups. WordPress stores its posts and settings in this database, so you create it first. It takes about 10–15 minutes to become available, and you deploy the WordPress instance while it starts.



Do not choose Specify login credentials. Lightsail then creates the user dbmasteruser and a strong password, and stores the password for you. In the next chapters you read it with the AWS CLI, so you never copy it by hand.
Choose Specify the master database name and enter wordpress. Lightsail adds the prefix db, so the database name is dbwordpress.


High Availability plans keep a standby copy in a second Availability Zone and cost twice as much. Standard is enough for this lab.
fcj-lightsail-db. Under Key-value tags, add the tag Project = fcj-lightsail. Choose Create database.

dbmasteruser, the hidden password, and the endpoint that WordPress connects to.
A Lightsail database accepts connections only from your Lightsail resources in the same Region by default (Public mode is off). You can check this on the Networking tab.