Skip to content
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

EntityTooLarge: Your proposed upload exceeds the maximum allowed size #788

Closed
hashibot opened this issue Jun 13, 2017 · 3 comments · Fixed by #21727
Closed

EntityTooLarge: Your proposed upload exceeds the maximum allowed size #788

hashibot opened this issue Jun 13, 2017 · 3 comments · Fixed by #21727
Labels
bug Addresses a defect in current functionality. service/s3 Issues and PRs that pertain to the s3 service.
Milestone

Comments

@hashibot
Copy link

This issue was originally opened by @dragan as hashicorp/terraform#14693. It was migrated here as part of the provider split. The original body of the issue is below.


When using the aws_s3_bucket_object resource, I'm not able to upload large files. However, using the aws cli, I am without any changes to the bucket policy.

Terraform Version

v0.8.8

Affected Resource(s)

Please list the resources as a list, for example:

  • aws_s3_bucket_object

Terraform Configuration Files

resource "aws_s3_bucket_object" "monolith_development_0_0_2" {
  bucket  = "${aws_s3_bucket.my_bucket.bucket}"
  key     = "path/to/large/file.bin"
  source = "${format("%s/path/to/large/file.bin", path.cwd)}"
}

Debug Output

https://gist.github.com/dragan/bd658a64fe8db87fb880410ed7b190a1

Expected Behavior

Upload the file

Actual Behavior

Error applying plan:

1 error(s) occurred:

* aws_s3_bucket_object.monolith_development_0_0_2: Error putting object in S3 bucket (concur-faraday-integration-backup): EntityTooLarge: Your proposed upload exceeds the maximum allowed size
        status code: 400, request id: F9D925AB9BA31A72

Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.

Steps to Reproduce

  1. terraform plan -out=plan.bin
  2. terraform apply plan.bin

Important Factoids

None

References

Not that I know of

@hashibot hashibot added the bug Addresses a defect in current functionality. label Jun 13, 2017
@radeksimko radeksimko added the service/s3 Issues and PRs that pertain to the s3 service. label Jan 27, 2018
@ewbankkit
Copy link
Contributor

This looks like a scenario for multipart upload, maybe using the AWS SDK Uploader?

@github-actions
Copy link

github-actions bot commented Jan 6, 2022

This functionality has been released in v3.71.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!

@github-actions
Copy link

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.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/s3 Issues and PRs that pertain to the s3 service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants