Connecting to the instance

Now that we have created the database instance, let's connect to it using psql, which is a command-line utility. The parameters are as follows:

  • The database host.
  • The port.
  • The database master user that was supplied during instance creation.
  • The database that was requested during instance creation:
Ameyas-MacBook-Pro:~ Webonise$ psql -h letspolldb.c9mlwulrnppz.us-west-1.rds.amazonaws.com -p 5432 -U letspollDB_master -W letsPollPassword for user letspollDB_master: psql (9.6.1, server 9.6.6)SSL connection (protocol: TLSv1.2, cipher: ECDHE-RSA-AES256-GCM-SHA384, bits: 256, compression: off)Type "help" for help.letsPoll=> 

Get Hands-On Serverless Applications with Kotlin now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.