okta / terraform-provider-okta

A Terraform provider to manage Okta resources, enabling infrastructure-as-code provisioning and management of users, groups, applications, and other Okta objects.
https://registry.terraform.io/providers/okta/okta
Mozilla Public License 2.0
248 stars 201 forks source link

okta_app_oauth_role_assignment unexpected new value #2007

Open jakekiernanheb opened 3 weeks ago

jakekiernanheb commented 3 weeks ago

Using this provider, we are getting the following error in our TFC pipelines:

Error: Provider produced inconsistent result after apply
When applying changes to okta_app_oauth_role_assignment.team_24051125_oauth_api_role_assignment, provider "provider[\"registry.terraform.io/okta/okta\"]" produced an unexpected new value: .role: was cty.StringVal("cr0c9tf0mvqbmxucn1d7"), but now cty.StringVal("cr0c9tf0mvqBmxuCn1d7").

This is a bug in the provider, which should be reported in the provider's own issue tracker.

The resource was built originally, but now this error is blocking our pipeline.

duytiennguyen-okta commented 3 weeks ago

Can you provide the terraform script and the log when you run TF_LOG=debug terraform apply