You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
0.25.36, but AFAICT the issue dates back to the resource's introduction in #271.
Terraform Version
1.1.3
Describe the bug
Destruction of a snowflake_network_policy_attachment resource unconditionally unsets any account-level network policy, even when the snowflake_network_policy_attachment's set_for_account attribute is set to false. This has the effect of unsetting account-level network policies that may have been configured outside of Terraform. snowflake_network_policy renames also trigger snowflake_network_policy_attachment re-creates, which exacerbates the issue.
Expected behavior
Destruction of a snowflake_network_policy_attachment resource with set_for_account = false shouldn't unset account-level network policies (because the resource itself should know that it wasn't set at the account-level).
Provider Version
0.25.36
, but AFAICT the issue dates back to the resource's introduction in #271.Terraform Version
1.1.3
Describe the bug
Destruction of a
snowflake_network_policy_attachment
resource unconditionally unsets any account-level network policy, even when thesnowflake_network_policy_attachment
'sset_for_account
attribute is set tofalse
. This has the effect of unsetting account-level network policies that may have been configured outside of Terraform.snowflake_network_policy
renames also triggersnowflake_network_policy_attachment
re-creates, which exacerbates the issue.Expected behavior
Destruction of a
snowflake_network_policy_attachment
resource withset_for_account = false
shouldn't unset account-level network policies (because the resource itself should know that it wasn't set at the account-level).Code samples and commands
Define some network policy and an attachment:
Rename
snowflake_network_policy.policy
to triggersnowflake_network_policy_attachment.attach
destroy + re-create:Check
snowflake.account_usage.query_history
and see that the user identity ran anALTER ACCOUNT UNSET NETWORK_POLICY
statement.The text was updated successfully, but these errors were encountered: