Snowflake-Labs / terraform-provider-snowflake

Terraform provider for managing Snowflake accounts
https://registry.terraform.io/providers/Snowflake-Labs/snowflake/latest
MIT License
521 stars 407 forks source link

[Docs]: snowflake_user_password_policy_attachment invalid args #2920

Open georgeb-accelins opened 1 month ago

georgeb-accelins commented 1 month ago

Object type(s)

resource:user_password_policy_attachment

Documentation Link

https://registry.terraform.io/providers/Snowflake-Labs/snowflake/latest/docs/resources/user_password_policy_attachment

Description

Using the latest provider version, 0.92.0, I get the following errors if I try to include password_policy_database or password_policy_schema args to resource snowflake_user_password_policy_attachment

Unexpected attribute: An attribute named "password_policy_database" is not expected here Unexpected attribute: An attribute named "password_policy_schema" is not expected here

I also do not see these fields defined in the resource schema.

References

No response

Would you like to implement a fix?

sfc-gh-asawicki commented 1 month ago

Hey @georgeb-accelins. THanks for reaching out to us.

You are right, the example is incorrect. We will fix it before today's release.

sfc-gh-asawicki commented 1 month ago

Hey @georgeb-accelins, we updated the example in v0.93.0: https://registry.terraform.io/providers/Snowflake-Labs/snowflake/latest/docs/resources/user_password_policy_attachment