Forrest logo
back to the meroxa tool

meroxa:warp:47c87

Add a Google BigQuery resource to the Meroxa Platform
$ meroxa resources create ${resource_name} --type bigquery --url "bigquery://${gcp_project_id}/${gcp_dataset_name}" --client-key "$(cat ${gcp_service_account_json_file})"
try on your machine

This command creates a new resource in Meroxa with the specified name.

Here is a breakdown of the command:

  • meroxa resources create: This is the main command to create a resource in Meroxa.
  • ${resource_name}: This is a placeholder for the name you want to give to the resource. You need to replace it with the actual name you want to provide.
  • --type bigquery: This flag specifies the type of the resource as BigQuery. This means that the resource will be connected to a BigQuery database.
  • --url "bigquery://${gcp_project_id}/${gcp_dataset_name}": This flag specifies the URL or connection string for the BigQuery database. ${gcp_project_id} and ${gcp_dataset_name} are placeholders for the actual GCP project ID and the name of the BigQuery dataset you want to connect to.
  • --client-key "$(cat ${gcp_service_account_json_file})": This flag specifies the client key or service account credentials for accessing the BigQuery database. ${gcp_service_account_json_file} is a placeholder for the path to the JSON file containing the service account credentials. The cat command is used to read the content of the file.

In summary, this command creates a new resource in Meroxa with the provided name, connects it to a BigQuery database identified by the project ID and dataset name, and uses the service account credentials to authorize access to the database.

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