File tree 11 files changed +108
-84
lines changed
11 files changed +108
-84
lines changed Original file line number Diff line number Diff line change 1
1
repos :
2
2
- repo : https://github.com/gruntwork-io/pre-commit
3
- rev : " v0.1.23 " # Get the latest from: https://github.com/gruntwork-io/pre-commit/releases
3
+ rev : " v0.1.25 " # Get the latest from: https://github.com/gruntwork-io/pre-commit/releases
4
4
hooks :
5
5
- id : terraform-validate # It should be the first step as it runs terraform init required by tflint
6
6
- id : terraform-fmt
7
7
- id : tflint
8
8
9
9
- repo : https://github.com/terraform-docs/terraform-docs
10
- rev : " v0.18 .0" # Get the latest from: https://github.com/terraform-docs/terraform-docs/releases
10
+ rev : " v0.19 .0" # Get the latest from: https://github.com/terraform-docs/terraform-docs/releases
11
11
hooks :
12
12
- id : terraform-docs-go
13
13
args : ["."]
14
14
15
15
- repo : https://github.com/bridgecrewio/checkov.git
16
- rev : " 3.2.216 " # Get the latest from: https://github.com/bridgecrewio/checkov/releases
16
+ rev : " 3.2.350 " # Get the latest from: https://github.com/bridgecrewio/checkov/releases
17
17
hooks :
18
18
- id : checkov
19
19
args : [--skip-check, "CKV_TF_1"] # Terraform module sources do not use a git url with a commit hash revision
20
20
21
21
- repo : https://github.com/pre-commit/pre-commit-hooks
22
- rev : " v4.6 .0" # Get the latest from: https://github.com/pre-commit/pre-commit-hooks/releases
22
+ rev : " v5.0 .0" # Get the latest from: https://github.com/pre-commit/pre-commit-hooks/releases
23
23
hooks :
24
24
- id : check-merge-conflict
25
25
args : ["--assume-in-merge"]
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -42,13 +42,15 @@ terraform destroy -var-file=fixtures.tfvars
42
42
| Name | Source | Version |
43
43
| ------| --------| ---------|
44
44
| <a name =" module_existing_schema " ></a > [ existing\_ schema] ( #module\_ existing\_ schema ) | ../../ | n/a |
45
- | <a name =" module_new_schema " ></a > [ new\_ schema] ( #module\_ new\_ schema ) | ../../ | n/a |
45
+ | <a name =" module_marts_schema " ></a > [ marts\_ schema] ( #module\_ marts\_ schema ) | ../../ | n/a |
46
+ | <a name =" module_raw_schema " ></a > [ raw\_ schema] ( #module\_ raw\_ schema ) | ../../ | n/a |
46
47
47
48
## Outputs
48
49
49
50
| Name | Description |
50
51
| ------| -------------|
51
- | <a name =" output_new_schema " ></a > [ new\_ schema] ( #output\_ new\_ schema ) | Schema module outputs |
52
+ | <a name =" output_marts_schema " ></a > [ marts\_ schema] ( #output\_ marts\_ schema ) | Schema module outputs |
53
+ | <a name =" output_raw_schema " ></a > [ raw\_ schema] ( #output\_ raw\_ schema ) | Schema module outputs |
52
54
53
55
## Providers
54
56
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ resource "snowflake_schema" "this" {
28
28
29
29
resource "snowflake_table" "table_1" {
30
30
database = snowflake_database. this . name
31
- schema = module. new_schema . name
31
+ schema = module. raw_schema . name
32
32
name = " TEST_TABLE_1"
33
33
34
34
column {
@@ -45,7 +45,7 @@ resource "snowflake_table" "table_1" {
45
45
46
46
resource "snowflake_table" "table_2" {
47
47
database = snowflake_database. this . name
48
- schema = module. new_schema . name
48
+ schema = module. raw_schema . name
49
49
name = " TEST_TABLE_2"
50
50
51
51
column {
@@ -72,7 +72,7 @@ module "existing_schema" {
72
72
73
73
}
74
74
75
- module "new_schema " {
75
+ module "raw_schema " {
76
76
source = " ../../"
77
77
context_templates = var. context_templates
78
78
@@ -153,3 +153,14 @@ module "new_schema" {
153
153
}
154
154
}
155
155
}
156
+
157
+ module "marts_schema" {
158
+ source = " ../../"
159
+ context_templates = var. context_templates
160
+
161
+ name = " marts"
162
+ name_scheme = {
163
+ uppercase = false
164
+ }
165
+ database = snowflake_database. this . name
166
+ }
Original file line number Diff line number Diff line change 1
- output "new_schema " {
1
+ output "raw_schema " {
2
2
description = " Schema module outputs"
3
- value = module. new_schema
3
+ value = module. raw_schema
4
+ }
5
+
6
+ output "marts_schema" {
7
+ description = " Schema module outputs"
8
+ value = module. marts_schema
4
9
}
Original file line number Diff line number Diff line change @@ -50,14 +50,14 @@ No inputs.
50
50
51
51
| Name | Version |
52
52
| ------| ---------|
53
- | <a name =" provider_snowflake " ></a > [ snowflake] ( #provider\_ snowflake ) | ~ > 0.94 |
53
+ | <a name =" provider_snowflake " ></a > [ snowflake] ( #provider\_ snowflake ) | >= 0.94 |
54
54
55
55
## Requirements
56
56
57
57
| Name | Version |
58
58
| ------| ---------|
59
59
| <a name =" requirement_terraform " ></a > [ terraform] ( #requirement\_ terraform ) | >= 1.3 |
60
- | <a name =" requirement_snowflake " ></a > [ snowflake] ( #requirement\_ snowflake ) | ~ > 0.94 |
60
+ | <a name =" requirement_snowflake " ></a > [ snowflake] ( #requirement\_ snowflake ) | >= 0.94 |
61
61
62
62
## Resources
63
63
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ terraform {
4
4
required_providers {
5
5
snowflake = {
6
6
source = " Snowflake-Labs/snowflake"
7
- version = " ~> 0.94"
7
+ version = " >= 0.94"
8
8
}
9
9
}
10
10
}
You can’t perform that action at this time.
0 commit comments