-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
[Bug]: Data Source aws_s3_object - Unable to retrieve User Defined metadata #33648
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
@andremachado94 Thanks for raising this issue 👏. |
Hi @ewbankkit ! Yes, it's done outside of terraform (when creating a new release with GH actions). Like this:
|
The cause is that the AWS SDK for Go v2 From the S3 User Guide:
Relates aws/aws-sdk-go#445. |
Ok, thanks for the help! |
This functionality has been released in v5.19.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Terraform Core Version
1.5.7
AWS Provider Version
5.17.0,5.18.0,5.18.1
Affected Resource(s)
Expected Behavior
We are using the data source
aws_s3_object
to retrieve a User Defined metadata key-value pair:Key name:
Hash
(in the object metadata is set asx-amz-meta-hash
)Expected behaviour:
Calling
data.aws_s3_object.package.metadata.Hash
should return the value of the keyx-amz-meta-hash
Actual Behavior
Fails with the following exception:
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
Using provider >= v5.17.0:
x-amz-meta-hash
aws_s3_object
on that s3 object and with an output block that returnsdata.aws_s3_object.<whatever_name_you_gave_it>.metadata.Hash
Debug Output
No response
Panic Output
No response
Important Factoids
This was working on
v5.16.2
. The breaking change occurred on the releasev5.17.0
. Maybe from #33358 ?References
https://github.com/hashicorp/terraform-provider-aws/releases/tag/v5.17.0
#33358
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: