capabilities.work

Cloud Provision a Job in a Project Environment

A 3-step recipe with dbt. We can help you get access.

Recipe · 3 steps

Cloud Provision a Job in a Project Environment

with dbt

Create a job using the first available environment in the account.

  1. Read the target project to confirm it exists.
  2. List the account's environments and select the first one as the target environment for the new job.
  3. Create a job in the confirmed project bound to the selected environment.
What you'll need to have ready
  • accountId: The dbt Cloud account id.
  • projectId: The project the new job belongs to.
  • jobName: A display name for the new job.
  • executeSteps: The list of dbt commands the job runs.
  • token: The dbt Cloud service token (sent as Authorization Bearer Token).
For your developer

Arazzo workflow dbt:provision-job-in-environment, 3 operations: getProject → listEnvironments → createJob. Specs on APIs.io.