Configuring the public mode for your database in Amazon Lightsail
Last updated: March 15, 2019
Your managed database in Amazon Lightsail is accessible only by your Lightsail resources (instances, load balancers, etc.) that are in the same Lightsail account. One common scenario is to create both a Lightsail instance with a public-facing web application and a Lightsail database that is not publicly accessible, and then connect the two.
Enable the public mode feature to make your database publicly accessible. This way, anyone with the database endpoint, port, user name, and password can connect to your database. For more information, see Connecting to your MySQL database in Amazon Lightsail or Connecting to your PostgreSQL database in Amazon Lightsail.
Sign in to the Lightsail console.
On the Lightsail home page, choose the Databases tab.
Choose the name of the database for which you want to configure public mode.
Choose the Networking tab.
Under the Public mode section, use the toggle to turn it on. Likewise, use the toggle to turn it off.
The public accessibility setting begins applying immediately but may require a few minutes to complete. During this time, the status of your database changes to Modifying. The status of your database changes to Available after the public accessibility setting is applied.
To configure the public mode for your database
Here are a few guides to help you manage your database in Lightsail: