-
Notifications
You must be signed in to change notification settings - Fork 427
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
[Bug]: The terraform-provider-snowflake_v0.86.0 plugin crashed! #3085
Comments
Hi @rajasinghr 👋 Could you provide the definition of In v0.95.0, we have introduced Note that tags and masking policies are on our roadmap, and will be reworked soon. |
Hi @sfc-gh-jmichalak , We are passing masking_policies as list from an yaml file and create resources using the below module.
tag.yaml
Here is the full stack trace
|
I mean that masking policies are schema-level objects, and a part of their id is also schema and database name. A fully qualified name of a masking policy looks like In v0.95.0, each resource has a |
Got it. Thank you. Will try this with the latest version |
This worked after upgrading the version and mentioning the fully_qualified_name for the resources |
Terraform CLI Version
1.4.6
Terraform Provider Version
0.86.0
Terraform Configuration
Category
category:resource
Object type(s)
resource:tag_masking_policy_association
Expected Behavior
Associating masking policies with a tag
Actual Behavior
I am getting the below error
Error: Plugin did not respond
│
│ The plugin encountered an error, and failed to respond to the
│ plugin6.(*GRPCProvider).ApplyResourceChange call. The plugin logs may
│ contain more details.
╵
Stack trace from the terraform-provider-snowflake_v0.86.0 plugin:
panic: interface conversion: sdk.ObjectIdentifier is sdk.AccountObjectIdentifier, not sdk.SchemaObjectIdentifier
Error: The terraform-provider-snowflake_v0.86.0 plugin crashed!
Steps to Reproduce
resource "snowflake_tag" "tag" {
name = var.name
database = var.database
schema = var.schema
}
resource "snowflake_tag_masking_policy_association" "masking_policy_tag_association" {
for_each = toset(var.masking_policies)
tag_id = snowflake_tag.tag.id
masking_policy_id = each.key
}
How much impact is this issue causing?
Low
Logs
No response
Additional Information
No response
Would you like to implement a fix?
The text was updated successfully, but these errors were encountered: