-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: dbt run now functions for all compliances—AWS, GCP, AZURE—withou…
…t specifying the model
- Loading branch information
Showing
22 changed files
with
49 additions
and
31 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
transformations/aws/compliance-free/models/aws_compliance__api_gateway_method_settings.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
{{ config(enabled=block_bigquery()) }} | ||
|
||
{{ api_gateway_method_settings() }} |
2 changes: 1 addition & 1 deletion
2
transformations/aws/compliance-free/models/aws_compliance__foundational_security_free.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
transformations/aws/compliance-free/models/aws_compliance__pci_dss_v3_2_1_free.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...sformations/aws/compliance-premium/models/aws_compliance__api_gateway_method_settings.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
{{ config(enabled=block_bigquery()) }} | ||
|
||
{{ api_gateway_method_settings() }} |
2 changes: 2 additions & 0 deletions
2
transformations/aws/compliance-premium/models/aws_compliance__foundational_security.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
transformations/aws/compliance-premium/models/aws_compliance__imds_v2.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
transformations/aws/compliance-premium/models/aws_compliance__pci_dss_v3.2.1.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
transformations/aws/compliance-premium/models/aws_compliance__public_egress.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
transformations/aws/compliance-premium/models/aws_compliance__publicly_available.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
transformations/aws/macros/efs/access_point_enforce_user_identity.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
transformations/aws/models/aws_compliance__networks_acls_ingress_rules.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
{{ config(enabled=block_bigquery()) }} | ||
|
||
with | ||
aggregated as ( | ||
({{ networks_acls_ingress_rules() }}) | ||
|
2 changes: 2 additions & 0 deletions
2
transformations/aws/models/aws_compliance__security_group_egress_rules.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
{{ config(enabled=block_bigquery()) }} | ||
|
||
with | ||
aggregated as ( | ||
({{ security_group_egress_rules() }}) | ||
|
2 changes: 2 additions & 0 deletions
2
transformations/azure/compliance-free/models/azure_compliance__cis_v1_3_0_free.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
transformations/azure/compliance-premium/models/azure_compliance__cis_v1_3_0.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
transformations/azure/models/view_azure_nsg_dest_port_ranges.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
{{ config(enabled=block_bigquery()) }} | ||
|
||
with | ||
aggregated as ( | ||
({{view_azure_nsg_dest_port_ranges()}}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
{{ config(enabled=block_bigquery()) }} | ||
|
||
with | ||
aggregated as ( | ||
({{view_azure_nsg_rules()}}) | ||
|
2 changes: 2 additions & 0 deletions
2
transformations/azure/models/view_azure_security_policy_parameters.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
{{ config(enabled=block_bigquery()) }} | ||
|
||
with | ||
aggregated as ( | ||
({{view_azure_security_policy_parameters()}}) | ||
|
8 changes: 4 additions & 4 deletions
8
transformations/macros/is_snowflake.sql → transformations/macros/block_bigquery.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{% macro is_snowflake() %} | ||
{% if target.name == 'snowflake' %} | ||
{{ return(true) }} | ||
{% else %} | ||
{% macro block_bigquery() %} | ||
{% if target.type == 'bigquery' %} | ||
{{ return(false) }} | ||
{% else %} | ||
{{ return(true) }} | ||
{% endif %} | ||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{% macro block_postgres() %} | ||
{% if target.type == 'postgres' %} | ||
{{ return(false) }} | ||
{% else %} | ||
{{ return(true) }} | ||
{% endif %} | ||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{% macro block_snowflake() %} | ||
{% if target.type == 'snowflake' %} | ||
{{ return(false) }} | ||
{% else %} | ||
{{ return(true) }} | ||
{% endif %} | ||
{% endmacro %} |