terraform-provider-snowflake: [Bug]: snowflake_external_oauth_integration always running a modify/update
Terraform CLI Version
0.87.0
Terraform Provider Version
1.9.4
Terraform Configuration
resource "snowflake_external_oauth_integration" "azure" {
name = "AZURE_CLIENT"
type = "AZURE"
enabled = true
issuer = "https://sts.windows.net/a...8/"
snowflake_user_mapping_attribute = "LOGIN_NAME"
jws_keys_urls = ["https://login.microsoftonline.com/a...8/discovery/v2.0/keys","https://login.windows.net/common/discovery/keys","https://login.microsoftonline.com/a...8/discovery/v2.0/keys?appid=2...373"]
audience_urls = ["https://analysis.windows.net/powerbi/connector/Snowflake", "https://<org-account>.snowflakecomputing.com"]
token_user_mapping_claims = ["upn","sub"]
any_role_mode = "ENABLE"
}
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
- Create and deploy a snowflake_external_oauth_integration
- Re-run a plan and see updates being picked without changing resource
How much impact is this issue causing?
Medium
Logs
No response
Additional Information
No response
Would you like to implement a fix?
- Yeah, I’ll take it 😎
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15
@sfc-gh-asawicki I can confirm that the problem persists in 0.94.1
Hey @wpl-sf-nbirch.
snowflake_external_oauth_integrationresource was reworked in v0.93.0. Please first migrate to this version and check if the problem persists there.Thanks for the detailed description. These changed fields in
show_outputare simply read from Snowflake and represent the warehouse state, and it looks like these values changed between terraform runs.