- Sign up for a new account on the dbt website (https://cloud.getdbt.com/signup).
- Once you have created an account, log in and create a new project.
- If you already used dbt in another project in the upper right corner, select "Create new account". Enter a name and click create.
- Choose a connection: select bigquery and click next. Then click on the green button "Upload a Service Account JSON file". And we upload the same file that we downloaded before. Finally click on "test connection".
- Setup a Repository: Select "git clone" and paste the url of your repository that we just cloned. Finally click on "next".
- The project is created and now you can see the project in develop.
- At the top left look for the deploy option: Click on Environments.
- Create Environment.
- Chose a name: "Production", Environment Type: Deployment and dbt Version latest.
- On Deployment Credentials: Dataset: production. And save it.
- At the top left look for the deploy option: Click on Jobs.
- Create a new Job.
- Chose a name, Environment: "Production", check on Generate docs on run.
- Add a schedule so that it runs every day at 2:00 p.m. (1 hour later than prefect)
- And save.
- Run now to try it.