- Newest
- Most votes
- Most comments
There are some likely causes that you can continue your troubleshooting:
- Even though you've set the bucket policy and object ACL to public, S3 has account-level and bucket-level "Block Public Access" settings that can override these permissions. This could explain the intermittent "Access Denied" errors. To Check and disable if needed: 1.1 Navigate to S3 Console → Your bucket → Permissions tab → Block Public Access settings 1.2 Also check account-level settings: S3 Console → Block Public Access settings for this account 1.3 Ensure all four settings are turned OFF if you need public access
- For public access to work properly, you need both the bucket policy AND proper object permissions. A common issue is when the object ACL doesn't grant the bucket owner full control, or when there's a mismatch between bucket and object ownership.
- Check your S3 request throttling: For an 80MB file being downloaded by multiple users simultaneously, you might be hitting S3's request rate limits (5,500 GET requests per second per prefix). This would cause 503 SlowDown errors that manifest as timeouts.
- The Error 520/522 from Cloudflare indicates origin server connection failures. This suggests: --Cloudflare can't establish a connection to your S3 origin --The connection is timing out before completing --There may be SSL/TLS certificate issues between Cloudflare and S3
You can try downloading directly from the S3 URL (not through Cloudflare) Use: https://YOUR-BUCKET-NAME.s3.amazonaws.com/path/to/file.apk This isolates whether the issue is S3 or Cloudflare.
Hey,
Hope you're keeping well.
Slow or incomplete S3 downloads are often tied to network path or transfer settings rather than bucket policy alone. Since Cloudflare and direct S3 both fail, check the S3 bucket’s Block Public Access settings at both the account and bucket level, as these can intermittently override ACLs. For the timeout issue, large object downloads can benefit from enabling Amazon CloudFront in front of the bucket, which will cache the file and use edge locations to reduce latency. Also verify from the AWS CLI with aws s3 cp s3://bucket-name/object . --region your-region to confirm if the problem is network-related or object-level.
Thanks and regards,
Taz
answered a year ago
Relevant content
asked 4 years ago
