-
Notifications
You must be signed in to change notification settings - Fork 241
Open
Labels
enhancementNew feature or requestNew feature or request
Description
SDK version
github.com/hashicorp/terraform-plugin-sdk/v2 v2.37.0
Use-cases
I would like to see how to solve this kind of issue before migrating to the terraform framework. I stumble upon many of those issue and it is not clear to me how to solve it.
| Error: Provider produced inconsistent result after apply
|
| When applying changes to scaleway_job_definition.main, provider
| "provider[\"registry.terraform.io/hashicorp/scaleway\"]" produced an
| unexpected new value: .secret_reference: planned set element
| cty.ObjectVal(map[string]cty.Value{"environment":cty.StringVal(""),
| "file":cty.StringVal("/home/dev/env"),
| "secret_id":cty.StringVal("fr-par/114ab44f-472d-4f07-81a9-c360f922889e"),
| "secret_reference_id":cty.UnknownVal(cty.String),
| "secret_version":cty.StringVal("latest")}) does not correlate with any
| element in actual.
|
| This is a bug in the provider, which should be reported in the provider's own
| issue tracker.
Attempted Solutions
I could not add the flag in the schema that enable this kind of error.
Proposal
It would be helpful to add more documentation here https://developer.hashicorp.com/terraform/plugin/sdkv2/resources/data-consistency-errors#resolving-data-consistency-errors about how to solve this kind of problem
References
https://github.com/scaleway/terraform-provider-scaleway/pull/3282/files
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request