-
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]: snowflake_external_oauth_integration always running a modify/update #3006
Comments
Hey @wpl-sf-nbirch. |
@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:
Running Terraform v1.8.2, provider registry.terraform.io/snowflake-labs/snowflake v0.94.1 |
Hey @marius-sb1 👋 |
Hey @sfc-gh-jcieslak |
Hey 👋 |
Hey again @sfc-gh-jcieslak !
We are using |
Hey @mch-sb |
Ah, i see, thanks! |
Hi @mch-sb 👋 Please provide the resource configuration and logs with |
Hey @sfc-gh-jmichalak I have found a solution for my case, and the problem was also probably created by me. We are creating the warehouse in a tf-module, and outputing the whole resource-output from the terraform-project, to be used in other terraform-projects. Slimmed down example to reproduce my issue: # top-level content
terraform {
required_providers {
snowflake = {
source = "snowflake-labs/snowflake"
version = "0.95.0"
}
}
}
module "wh" {
source = "./wh"
}
output "wh" { # this output is used by other terraform-projects
value = module.wh.wh
} # module-content
terraform {
required_providers {
snowflake = {
source = "Snowflake-labs/snowflake"
version = ">= 0.95.0"
}
}
}
resource "snowflake_warehouse" "warehouse" {
name = "MCH_TEST_WH"
warehouse_size = "XSMALL"
auto_suspend = 300
statement_timeout_in_seconds = 14400
lifecycle {
# Ignore all changes except name-change
# unfortunately not possible with all except
# https://registry.terraform.io/providers/Snowflake-Labs/snowflake/latest/docs/resources/warehouse
ignore_changes = [
auto_resume,
auto_suspend,
comment,
enable_query_acceleration,
initially_suspended,
max_cluster_count,
max_concurrency_level,
min_cluster_count,
query_acceleration_max_scale_factor,
resource_monitor,
scaling_policy,
statement_queued_timeout_in_seconds,
statement_timeout_in_seconds,
warehouse_size,
warehouse_type,
]
}
}
output "wh" { # outputting the whole output from the wh-resource
value = snowflake_warehouse.warehouse
} Output from the root-output is sourced into other terraform-projects with When having the
But we have no need for the whole output later down the pipeline. And only outputting what we actually need from the root-level, terraform is not reporting the changes from So summa summārum, it seems both the |
Thanks for the detailed description. These changed fields in |
Closing, as the provider is behaving correctly. If you have any further issues, please open a new issue. |
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?
The text was updated successfully, but these errors were encountered: