Datasource aws_secretsmanager_secret_version corrupts binary data #25603
Labels
bug
Addresses a defect in current functionality.
service/secretsmanager
Issues and PRs that pertain to the secretsmanager service.
Community Note
Terraform CLI and Terraform AWS Provider Version
terraform version: Terraform v1.1.0
was provider version: 4.20.1
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
Panic Output
Expected Behavior
The requested binary data from the AWS secret equals the origin.
Actual Behavior
The requested binary data from the AWS secret differs from the origin.
In my case I used to upload pkcs12 file.
I tested the same case with a sample text file and there was no issue.
I guess it is only related to binary files.
Steps to Reproduce
diff ./aws_binary_data ./terraform_binary_data
Important Factoids
References
The text was updated successfully, but these errors were encountered: