You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to
│ module.tfe_app8_ws1.tfe_variable.variables["ws_vcf_app_settings2"],
│ provider "provider[\"registry.terraform.io/hashicorp/tfe\"]" produced an
│ unexpected new value: .value: inconsistent values for sensitive attribute.
│
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
╵
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to
│ module.tfe_app8_ws1.tfe_variable.variables["ws_vcf_app_settings2"],
│ provider "provider[\"registry.terraform.io/hashicorp/tfe\"]" produced an
│ unexpected new value: .readable_value: was cty.StringVal("{\r\n
│ \"deployment_service\" = \"manager01\"\r\n}"), but now cty.StringVal("{\n
│ \"deployment_service\" = \"manager01\"\n}").
│
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
Expected Behavior
Terraform Enterprise variable is created
Actual Behavior
│ Error: Provider produced inconsistent result after apply
Additional Context
Variable is created if file do not contain value in hcl format
The text was updated successfully, but these errors were encountered:
Is this configuration hosted in a git repository? If so, is the repo configured to strip carriage returns on checkout? (Sometimes this is done with a .gitattributes file. You can list your repo's current config with git config --list.)
Was your secrets file created on a Windows machine?
Are your terraform runs executed locally or in your TFE instance?
It appears that carriage return characters ("\r") are being stripped at some point during the plan/apply. I'm not sure yet if this is a bug in Terraform, but in the meantime you should be able to work around it by stripping carriage returns yourself in the secrets file. This can be accomplished with the dos2unix tool or any capable text editor. Once it's done, your line breaks should only consist of line feed characters ("\n").
I'll follow up on my end with some more investigation to see if this is something that can be fixed on our end.
@psmola The issue is a function of windows CRLF vs *nix LF. The variable was set, but the CRLF was reformatted so it does not match on subsequent runs. The workaround/solution is to make sure the ws_vcf_app_settings.hcl file is formatted with *nix line endings.
Terraform Enterprise version
Terraform Enterprise v202404-2
Terraform version
Terraform Configuration Files
File ws_vcf_app_settings.hcl :
Debug Output
Expected Behavior
Terraform Enterprise variable is created
Actual Behavior
│ Error: Provider produced inconsistent result after apply
Additional Context
Variable is created if file do not contain value in hcl format
The text was updated successfully, but these errors were encountered: