Open wpl-sf-nbirch opened 3 weeks ago
Hey @wpl-sf-nbirch. snowflake_external_oauth_integration
resource was reworked in v0.93.0. Please first migrate to this version and check if the problem persists there.
@sfc-gh-asawicki I can confirm that the problem persists in 0.94.1
Thanks for confirmation, @wimo-velux; we will try to reproduce it, and we will get back to you.
@wimo-velux @wpl-sf-nbirch, Could you please provide the resource config with the steps you take here? I tried to reproduce it manually, but it's working correctly on my side.
I have a similar problem to the bug description, but it's manifesting slightly differently: it wants to apply removal of the attributes under "show_output" which doesn't make much sense to me:
# snowflake_external_oauth_integration.powerbi_sso will be updated in-place
~ resource "snowflake_external_oauth_integration" "powerbi_sso" {
id = "powerbi_sso"
name = "powerbi_sso"
~ show_output = [
- {
- category = "SECURITY"
- comment = "Security integration for Power BI, allowing AD users/service accounts authenticated with Power BI (AD SSO) to log on to Snowflake from Power BI with their respective users"
- created_on = "2024-08-08 12:10:48.756 +0200 CEST"
- enabled = true
- integration_type = "EXTERNAL_OAUTH - AZURE"
- name = "powerbi_sso"
},
] -> (known after apply)
# (11 unchanged attributes hidden)
}
Running Terraform v1.8.2, provider registry.terraform.io/snowflake-labs/snowflake v0.94.1
Hey @marius-sb1 👋
It's rather showing you the show_output
field will be recomputed. That's a known bug and we'll fix it for snowflake_external_oauth_integration
and every resource we already refactored in the essential objects list. The fix will be also applied to other _output
fields. This bug is not harmful other than annoying plans showing up. If you don't care about show_output
you can try to use this: https://developer.hashicorp.com/terraform/language/meta-arguments/lifecycle#ignore_changes but I'm not sure how it works on computed fields.
Hey @sfc-gh-jcieslak
Great to hear that you are looking into the _output
-fields bug. Is there an issue/pr to subscribe to, to track it?
Hey 👋 Yesterday, we released a new version of the provider (v0.95.0) where this issue should not occur. Please upgrade and let us know if the issue still persists, Thank You.
Terraform CLI Version
0.87.0
Terraform Provider Version
1.9.4
Terraform Configuration
Category
category:resource
Object type(s)
resource:external_oauth_integration
Expected Behavior
There is no changes to the oauth provider being specified once deployed, however, subsequent runs of the plan is showing an update/modify is needed.
Actual Behavior
It doesn't seem to be handling the multiple values within the URL sets provided between the brackets, so it detects it as a change, event when no entries are changing.
Steps to Reproduce
How much impact is this issue causing?
Medium
Logs
No response
Additional Information
No response
Would you like to implement a fix?