Error putting object in S3 bucket (): InvalidParameter: 1 validation error(s) found. - minimum field size of 1, PutObjectInput.Bucket. #9503
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
good first issue
Call to action for new contributors looking for a place to start. Smaller or straightforward issues.
service/s3
Issues and PRs that pertain to the s3 service.
Milestone
This issue was originally opened by @hdryx as hashicorp/terraform#22210. It was migrated here as a result of the provider split. The original body of the issue is below.
Hi,
I have a Lambda module that uploads a ZIP file to S3 using aws_s3_bucket_object function.
This works fine for my project until today when i'm using small ZIP files under 1KB.
I had this error when i tried to execute my code:
> Error: Error putting object in S3 bucket (): InvalidParameter: 1 validation error(s) found.- minimum field size of 1, PutObjectInput.Bucket.
As far as i now the minimum size of an object PUT in S3 is 0KB, so why Terraform is not able to upload the ZIP ?
Terraform Version
0.12.3
Terraform Configuration Files
Debug Output
Error: Error putting object in S3 bucket (): InvalidParameter: 1 validation error(s) found.
Actual Behavior
It looks like Terraform is not able to upload files with size less that 1 KB
The text was updated successfully, but these errors were encountered: