Forrest logo
back to the meroxa tool

meroxa:warp:bed56

Add a Postgres resource without logical replication to the Meroxa Platform
$ meroxa resources create ${resource_name} --type postgres --url "postgres://${pg_username}:${pg_password}@${pg_url}:${pg_port}/${pg_database_name}"
try on your machine

This command creates a resource named ${resource_name} in Meroxa. It uses the meroxa resources create command to perform this action.

The resource type is specified as postgres using the --type flag. It indicates that the resource is a PostgreSQL database.

The URL of the PostgreSQL database is provided using the --url flag. It follows the format postgres://${pg_username}:${pg_password}@${pg_url}:${pg_port}/${pg_database_name}, where:

  • ${pg_username}: The username of the PostgreSQL database.
  • ${pg_password}: The password of the PostgreSQL database.
  • ${pg_url}: The URL or IP address of the PostgreSQL database server.
  • ${pg_port}: The port number on which the PostgreSQL database is running.
  • ${pg_database_name}: The name of the PostgreSQL database.

By specifying all these values, the command creates a new resource in Meroxa that represents the PostgreSQL database specified in the URL.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the meroxa tool