Skip to content

Commit

Permalink
fix: Snowflake Provider version less strict
Browse files Browse the repository at this point in the history
  • Loading branch information
edulop committed Jan 8, 2021
1 parent 357d515 commit 68ab717
Show file tree
Hide file tree
Showing 26 changed files with 36 additions and 35 deletions.
3 changes: 2 additions & 1 deletion scripts/snowflake_generate_grant_all/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const (
perPrivTypeVarName string = "per_privilege_grants"

// TODO(el): grab this version directly from the provider
snowflakeProviderVersion string = "~> 0.20.0"
snowflakeProviderVersion string = ">= 0.20.0"
)

type Variable struct {
Expand Down Expand Up @@ -224,6 +224,7 @@ func reverseType(s *schema.Schema) (string, error) {
return "", err
}
innerElements = append(innerElements, fmt.Sprintf("%s = %s", name, inner))
sort.Strings(innerElements)
}
return fmt.Sprintf("list(object({ %s }))", strings.Join(innerElements, ", ")), nil
default:
Expand Down
4 changes: 2 additions & 2 deletions snowflake-account-grant-all/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

| Name | Version |
|------|---------|
| snowflake | ~> 0.20.0 |
| snowflake | >= 0.20.0 |

## Providers

| Name | Version |
|------|---------|
| snowflake | ~> 0.20.0 |
| snowflake | >= 0.20.0 |

## Inputs

Expand Down
2 changes: 1 addition & 1 deletion snowflake-account-grant-all/main.tf.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"required_providers": {
"snowflake": {
"source": "chanzuckerberg/snowflake",
"version": "~\u003e 0.20.0"
"version": "\u003e= 0.20.0"
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions snowflake-database-grant-all/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

| Name | Version |
|------|---------|
| snowflake | ~> 0.20.0 |
| snowflake | >= 0.20.0 |

## Providers

| Name | Version |
|------|---------|
| snowflake | ~> 0.20.0 |
| snowflake | >= 0.20.0 |

## Inputs

Expand Down
2 changes: 1 addition & 1 deletion snowflake-database-grant-all/main.tf.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"required_providers": {
"snowflake": {
"source": "chanzuckerberg/snowflake",
"version": "~\u003e 0.20.0"
"version": "\u003e= 0.20.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion snowflake-external-table-grant-all/main.tf.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"required_providers": {
"snowflake": {
"source": "chanzuckerberg/snowflake",
"version": "~\u003e 0.20.0"
"version": "\u003e= 0.20.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion snowflake-file-format-grant-all/main.tf.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"required_providers": {
"snowflake": {
"source": "chanzuckerberg/snowflake",
"version": "~\u003e 0.20.0"
"version": "\u003e= 0.20.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion snowflake-function-grant-all/main.tf.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"required_providers": {
"snowflake": {
"source": "chanzuckerberg/snowflake",
"version": "~\u003e 0.20.0"
"version": "\u003e= 0.20.0"
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions snowflake-integration-grant-all/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

| Name | Version |
|------|---------|
| snowflake | ~> 0.20.0 |
| snowflake | >= 0.20.0 |

## Providers

| Name | Version |
|------|---------|
| snowflake | ~> 0.20.0 |
| snowflake | >= 0.20.0 |

## Inputs

Expand Down
2 changes: 1 addition & 1 deletion snowflake-integration-grant-all/main.tf.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"required_providers": {
"snowflake": {
"source": "chanzuckerberg/snowflake",
"version": "~\u003e 0.20.0"
"version": "\u003e= 0.20.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion snowflake-materialized-view-grant-all/main.tf.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"required_providers": {
"snowflake": {
"source": "chanzuckerberg/snowflake",
"version": "~\u003e 0.20.0"
"version": "\u003e= 0.20.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion snowflake-procedure-grant-all/main.tf.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"required_providers": {
"snowflake": {
"source": "chanzuckerberg/snowflake",
"version": "~\u003e 0.20.0"
"version": "\u003e= 0.20.0"
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions snowflake-resource-monitor-grant-all/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

| Name | Version |
|------|---------|
| snowflake | ~> 0.20.0 |
| snowflake | >= 0.20.0 |

## Providers

| Name | Version |
|------|---------|
| snowflake | ~> 0.20.0 |
| snowflake | >= 0.20.0 |

## Inputs

Expand Down
2 changes: 1 addition & 1 deletion snowflake-resource-monitor-grant-all/main.tf.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"required_providers": {
"snowflake": {
"source": "chanzuckerberg/snowflake",
"version": "~\u003e 0.20.0"
"version": "\u003e= 0.20.0"
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions snowflake-schema-grant-all/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

| Name | Version |
|------|---------|
| snowflake | ~> 0.20.0 |
| snowflake | >= 0.20.0 |

## Providers

| Name | Version |
|------|---------|
| snowflake | ~> 0.20.0 |
| snowflake | >= 0.20.0 |

## Inputs

Expand Down
2 changes: 1 addition & 1 deletion snowflake-schema-grant-all/main.tf.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"required_providers": {
"snowflake": {
"source": "chanzuckerberg/snowflake",
"version": "~\u003e 0.20.0"
"version": "\u003e= 0.20.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion snowflake-sequence-grant-all/main.tf.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"required_providers": {
"snowflake": {
"source": "chanzuckerberg/snowflake",
"version": "~\u003e 0.20.0"
"version": "\u003e= 0.20.0"
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions snowflake-stage-grant-all/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

| Name | Version |
|------|---------|
| snowflake | ~> 0.20.0 |
| snowflake | >= 0.20.0 |

## Providers

| Name | Version |
|------|---------|
| snowflake | ~> 0.20.0 |
| snowflake | >= 0.20.0 |

## Inputs

Expand Down
2 changes: 1 addition & 1 deletion snowflake-stage-grant-all/main.tf.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"required_providers": {
"snowflake": {
"source": "chanzuckerberg/snowflake",
"version": "~\u003e 0.20.0"
"version": "\u003e= 0.20.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion snowflake-stream-grant-all/main.tf.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"required_providers": {
"snowflake": {
"source": "chanzuckerberg/snowflake",
"version": "~\u003e 0.20.0"
"version": "\u003e= 0.20.0"
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions snowflake-table-grant-all/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

| Name | Version |
|------|---------|
| snowflake | ~> 0.20.0 |
| snowflake | >= 0.20.0 |

## Providers

| Name | Version |
|------|---------|
| snowflake | ~> 0.20.0 |
| snowflake | >= 0.20.0 |

## Inputs

Expand Down
2 changes: 1 addition & 1 deletion snowflake-table-grant-all/main.tf.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"required_providers": {
"snowflake": {
"source": "chanzuckerberg/snowflake",
"version": "~\u003e 0.20.0"
"version": "\u003e= 0.20.0"
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions snowflake-view-grant-all/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

| Name | Version |
|------|---------|
| snowflake | ~> 0.20.0 |
| snowflake | >= 0.20.0 |

## Providers

| Name | Version |
|------|---------|
| snowflake | ~> 0.20.0 |
| snowflake | >= 0.20.0 |

## Inputs

Expand Down
2 changes: 1 addition & 1 deletion snowflake-view-grant-all/main.tf.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"required_providers": {
"snowflake": {
"source": "chanzuckerberg/snowflake",
"version": "~\u003e 0.20.0"
"version": "\u003e= 0.20.0"
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions snowflake-warehouse-grant-all/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

| Name | Version |
|------|---------|
| snowflake | ~> 0.20.0 |
| snowflake | >= 0.20.0 |

## Providers

| Name | Version |
|------|---------|
| snowflake | ~> 0.20.0 |
| snowflake | >= 0.20.0 |

## Inputs

Expand Down
2 changes: 1 addition & 1 deletion snowflake-warehouse-grant-all/main.tf.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"required_providers": {
"snowflake": {
"source": "chanzuckerberg/snowflake",
"version": "~\u003e 0.20.0"
"version": "\u003e= 0.20.0"
}
}
}
Expand Down

0 comments on commit 68ab717

Please sign in to comment.