-
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
Provider demands tag optional property to be defined as [""]
#1394
Comments
Same here with Also, seems that the resource attributes are weirdly ordered, not that it makes a difference:
vs.:
|
As a workaround, until the bug is fixed, you can use instead:
|
Won't this also ignore changes in |
the workaround is for when you don't fill |
I just upgraded the provider to version 0.61 and it seems that this problem is now fixed. |
Hey @dlouseiro, can we close the issue then? |
<!-- Feel free to delete comments as you fill this in --> - rework tag resource for v1 - generate asserts and models - deprecate snowflake_tag_masking_policy_association - extract a parser for extracting schema object identifier list <!-- summary of changes --> ## Test Plan <!-- detail ways in which this PR has been tested or needs to be tested --> * [x] acceptance tests <!-- add more below if you think they are relevant --> * [ ] … ## References <!-- issues documentation links, etc --> https://docs.snowflake.com/en/sql-reference/sql/create-tag #1806 #1443 #1394 ## TODO - tag data source - tag association resource - asserting that ALTER MASKING POLICY [ IF EXISTS ] <name> SET TAG doesn't alter the tag and vice-versa - we already unset masking policies from the tags on the tag part, but we're missing this on masking policies part - add acc tests, too
Hi @dlouseiro @bogdan-cioata 👋 This was already fixed in v0.61, but we've just released v0.99.0 (release, migration guide) in which we reworked tags. Please upgrade to this version and let us know if you have any issues. |
closing based on the comments. let us know please if you still see any issues with the latest provider (v1) |
Provider Version
0.51.0
Terraform Version
v1.3.6
Describe the bug
When a
snowflake_tag
resource is created withoutallowed_values
, the provider detects changes upon everyterraform plan/apply
, assuming that we're trying to change the value ofallowed_values
from[""]
tonull
.After some deeper investigation, I noticed that what is materialized in the
terraform
state whenallowed_values
is omitted is something like this:Although, when I run a
SHOW TAGS
, the allowed values are actually materialized asNULL
when theallowed_values
property is omitted, so if I runterraform apply
multiple times, terraform always considers that the value forallowed_values
is being changes fromnull
to[""]
.In order to ensure state consistency, I needed to force
allowed_values = [""]
in my terraform configuration.Expected behavior
I'd expect the omission of an optional property to produce consistent states between what is in the state file and what is materialized in the database.
The text was updated successfully, but these errors were encountered: