This script provides a standard way to access postgres from a remote server. It will fetch db credentials based on the following inputs:
DB_CREDENTIALS_NAMEis the name of the Secrets Manager secret to retrieve the db credentials from. (Required)DB_NAMEis the database name to connect to (Optional, Default:postgres)ENVshould be set toprodto modify the remote database, else it returns for a local environment. (Optional)