In this section, we are going to talk about how to connect a PostgreSQL database on AWS by using the RPostgreSQL library. If you don't have this library on your R environment, you can install it by using the following command:
install.packages("RPostgreSQL")
- Sign into your AWS account, and click Instances from the left menu, as shown in the following screenshot:
- Scroll down to the Details section and then find the endpoint: