Skip to content

Commit

Permalink
chore: Update readmes for Azure and GCP Premium (#268)
Browse files Browse the repository at this point in the history
* Update README-premium.md

Add additional dbt run commands

* Update README-premium.md
  • Loading branch information
jsonpr authored Nov 22, 2023
1 parent 95bf4bd commit c6970b2
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 3 deletions.
27 changes: 24 additions & 3 deletions transformations/azure_compliance/README-premium.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,18 @@

This package contains dbt models (views) that gives compliance insights from CloudQuery [Azure plugin](https://hub.cloudquery.io/plugins/source/cloudquery/azure) data.


### Requirements

- [CloudQuery](https://www.cloudquery.io/docs/quickstart)
- [CloudQuery Azure plugin](https://hub.cloudquery.io/plugins/source/cloudquery/azure)
- [dbt](https://docs.getdbt.com/docs/installation)

One of the below databases:

- [PostgreSQL](https://hub.cloudquery.io/plugins/destination/cloudquery/postgresql/v6.1.3/docs)
- [Snowflake](https://hub.cloudquery.io/plugins/destination/cloudquery/snowflake/v3.3.3/docs)


#### dbt Installation

Expand Down Expand Up @@ -76,11 +83,25 @@ Before executing the `dbt run` command, it might be useful to check for any pote
```bash
dbt compile
```
If everything compiles without errors, you can then execute:

One of the below databases
```bash
dbt run
```

- [PostgreSQL](https://hub.cloudquery.io/plugins/destination/cloudquery/postgresql/v6.1.3/docs)
- [Snowflake](https://hub.cloudquery.io/plugins/destination/cloudquery/snowflake/v3.3.3/docs)
This command will run your `dbt` models and create tables/views in your destination database as defined in your models.

To run specific models and the models in the dependency graph, the following `dbt run` commands can be used:

For a specific model and the models in the dependency graph:
```bash
dbt run --select +"<model_name>"
```

For a specific folder and the models in the dependency graph:
```bash
dbt run --models +pro
```

### What's in the pack

Expand Down
14 changes: 14 additions & 0 deletions transformations/gcp_compliance/README-premium.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,20 @@ dbt run

This command will run your `dbt` models and create tables/views in your destination database as defined in your models.

To run specific models and the models in the dependency graph, the following `dbt run` commands can be used:

For a specific model and the models in the dependency graph:
```bash
dbt run --select +"<model_name>"
```

For a specific folder and the models in the dependency graph:
```bash
dbt run --models +pro
```

More information can be found [here.](https://docs.getdbt.com/reference/node-selection/syntax)

### Usage

- Sync your data from GCP to destination (Postgres Example): `cloudquery sync gcp.yml postgres.yml`
Expand Down

0 comments on commit c6970b2

Please sign in to comment.