-
Notifications
You must be signed in to change notification settings - Fork 118
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
Warning: Response body is not recognized as UTF-8 even if response_body is not used #286
Comments
Hi @sashee 👋 Owing to the issues that can arise when binary data is used in Terraform configuration, the changes in Base64 encode response body (released in v3.4.0) added a warning to flag when the The only current options we have are:
Another possibility might be to raise a feature request on Terraform core requesting that a provider be given additional information about whether an attribute value is actually being used in this type of situation. There is a similar issue regarding computed attributes that are deprecated. |
Hi @bendbennett , Thanks for the thoughtful response! My initial thought was to just add an attribute (your 3rd point) but instead of controlling the warning it could control the parsing. For example, something like |
Hi @bendbennett , I agree with @sashee where allowing caller to explicitly signal the resource (i.e. the 3rd point) on the type of data and suppress the warning would be nice. We are relying on it to download a simple cert (which is not a text file), and all places are already using |
Terraform CLI and Provider Versions
Terraform v1.5.1
on linux_amd64
Terraform Configuration
Expected Behavior
Apply should not report any warnings.
Actual Behavior
During plan I see a warning:
Since I don't use the
response_body
there is no problem with binary data.Steps to Reproduce
terraform plan
How much impact is this issue causing?
Low
Logs
https://gist.github.com/sashee/ee2392c311a64ec0a1f5789b319528f0
Additional Information
Getting the file using the
content_base64
works fine, so the warning is only a small issue here.Code of Conduct
The text was updated successfully, but these errors were encountered: