Objects bigger than 5GB are not copied and result in an error.
Relevant Error/Panic Output Snippet
Error: copying REDACTED to S3 Bucket (REDACTED) Object (REDACTED): operation error S3: CopyObject, https response error StatusCode: 400, RequestID: 1ZHJYM7WKHP5A38D, HostID: wUmhlvya1F6GxTt2jkXHukRZ4j8CGdssRDvf/hcxhgfMkmc0sEaw2rhq5nTHehY/oi1zFqRcAAc=, api error InvalidRequest: The specified copy source is larger than the maximum allowable size for a copy source: 5368709120
Try to copy a file of 6GB to another bucket or key inside the same bucket.
Debug Output
No response
Panic Output
No response
Important Factoids
The fix in #21727 does not include a change for that resource but only for creating bucket's object from local content. It should be extended to that resource too.
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Terraform Core Version
1.5.7
AWS Provider Version
5.55.0
Affected Resource(s)
Expected Behavior
Objects of any size up to 5TB are copied.
Actual Behavior
Objects bigger than 5GB are not copied and result in an error.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Try to copy a file of 6GB to another bucket or key inside the same bucket.
Debug Output
No response
Panic Output
No response
Important Factoids
The fix in #21727 does not include a change for that resource but only for creating bucket's object from local content. It should be extended to that resource too.
References
22379
Would you like to implement a fix?
No