Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snowflake_procedure_grant documentation is wrong #982

Closed
jrobison-sb opened this issue Apr 21, 2022 · 2 comments
Closed

snowflake_procedure_grant documentation is wrong #982

jrobison-sb opened this issue Apr 21, 2022 · 2 comments
Labels
bug Used to mark issues with provider's incorrect behavior

Comments

@jrobison-sb
Copy link
Contributor

Provider Version

$ terraform version
Terraform v0.14.11
+ provider registry.terraform.io/chanzuckerberg/snowflake v0.25.36

Describe the bug

The docs for snowflake_procedure_grant are wrong:
https://github.com/chanzuckerberg/terraform-provider-snowflake/blob/main/examples/resources/snowflake_procedure_grant/resource.tf#L6-L15

  arguments   = [
    {
      "name": "a",
      "type": "array"
    },
    {
      "name": "b",
      "type": "string"
    }
  ]

This results in an error:

Error: Unsupported argument

  on ../../modules/aws/application/snowflake.tf line 1147, in resource "snowflake_procedure_grant" "foo":
1147:   arguments = [

An argument named "arguments" is not expected here. Did you mean to define a
block of type "arguments"?

Expected behavior

It should instead show the correct data type, which is a block, not a list:

  arguments {
    name = "a"
    type = "array"
  }

  arguments {
    name = "b"
    type = "string"
  }

@jrobison-sb jrobison-sb added the bug Used to mark issues with provider's incorrect behavior label Apr 21, 2022
@coryveilleux
Copy link

@sfc-gh-jalin
Copy link
Contributor

Issue has been resolved by above PR, closing issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Used to mark issues with provider's incorrect behavior
Projects
None yet
Development

No branches or pull requests

3 participants