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

Show with OnAllSchemasInDatabase option is skipped warning #2529

Closed
freylafert opened this issue Feb 20, 2024 · 4 comments
Closed

Show with OnAllSchemasInDatabase option is skipped warning #2529

freylafert opened this issue Feb 20, 2024 · 4 comments
Labels
general-usage General help/usage questions

Comments

@freylafert
Copy link

freylafert commented Feb 20, 2024

Terraform CLI and Provider Versions

terraform --version
Terraform v1.5.5
on darwin_arm64

  • provider registry.terraform.io/hashicorp/aws v5.36.0
  • provider registry.terraform.io/hashicorp/null v3.2.2
  • provider registry.terraform.io/snowflake-labs/snowflake v0.86.0

Terraform Configuration

resource "snowflake_grant_privileges_to_account_role" "ip_info_private_sharing_schemas_grant" {
  count             = local.is_dev_env ? 1 : 0
  provider          = snowflake.account_admin
  privileges        = ["USAGE"]
  account_role_name = snowflake_role.app_user_role.name
  on_schema {
    all_schemas_in_database = var.snowflake_ip_info_private_sharing_db_name
  }
  with_grant_option = false
}

Expected Behavior

terraform applied with no warnings

Actual Behavior

Getting following warning during terraform apply

│ Warning: Show with OnAllSchemasInDatabase option is skipped.

│ with module.snowflake.snowflake_grant_privileges_to_account_role.ip_info_private_sharing_schemas_grant[0],
│ on ../reporting/snowflake/snowflake.tf line 197, in resource "snowflake_grant_privileges_to_account_role" "ip_info_private_sharing_schemas_grant":
│ 197: resource "snowflake_grant_privileges_to_account_role" "ip_info_private_sharing_schemas_grant" {

│ See our document on design decisions for grants: <LINK (coming soon)>

Steps to Reproduce

  1. terraform apply

How much impact is this issue causing?

Unknown

Logs

No response

Additional Information

Not sure what is the actual impact of this warning.

@freylafert freylafert added the bug Used to mark issues with provider's incorrect behavior label Feb 20, 2024
@freylafert freylafert changed the title w Show with OnAllSchemasInDatabase option is skipped warning Feb 20, 2024
@sfc-gh-asawicki
Copy link
Collaborator

Hey @freylafert. Thanks for reaching out to us.

It was already discussed in #2520 and it was already merged in #2521. It will be released with 0.87.0 version.

@sfc-gh-asawicki sfc-gh-asawicki added general-usage General help/usage questions and removed bug Used to mark issues with provider's incorrect behavior labels Feb 20, 2024
@freylafert
Copy link
Author

freylafert commented Feb 20, 2024

Nice, just one more question, I see also warning "Show with OnAll option is skipped." Does it go away in 0.87.0 version as well or I should open a separate issue?

@sfc-gh-asawicki
Copy link
Collaborator

Yes, they should be all gone (unless we missed something).

@freylafert
Copy link
Author

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
general-usage General help/usage questions
Projects
None yet
Development

No branches or pull requests

2 participants