Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

254
Views
How do I make public for download files owned by the s3-log-service?

I've created a bucket to hold the log files created by the s3-log-service, and I've made the permissions so that the bucket can be both listed and the contents are publically accessible. I can list the contents of the bucket but web access to a log is denied with a 403 error.

{
"Version": "2008-10-17",
"Statement": [
    {
        "Sid": "AllowPublicRead",
        "Effect": "Allow",
        "Principal": {
            "AWS": "*"
        },
        "Action": "s3:GetObject",
        "Resource": "arn:aws:s3:::mybucket/*"
    },
    {
        "Sid": "AllowPublicRead",
        "Effect": "Allow",
        "Principal": {
            "AWS": "*"
        },
        "Action": "s3:ListBucket",
        "Resource": "arn:aws:s3:::mybucket"
    }
  ]
}

I gather such a policy doesn't work when the object (log file) is owned by someone else.

So, what other permissions do I need to apply to the bucket contents to make them publically accessible?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

You're correct in saying that the bucket policy does not apply to objects not owned by the AWS account. You have 2 options:

  1. You'll need to copy the objects onto themselves, setting the ACL flag to public-read:
AWS_ACCESS_KEY_ID=XXX \
AWS_SECRET_ACCESS_KEY=XXX \
aws s3 cp \
    s3://BUCKET/OBJECT_PATH \
    s3://BUCKET/OBJECT_PATH \
    --acl public-read
  1. Set the ACL flag to bucket-owner-full-control. From there, the bucket policy take over objects' permissions.

The only way I found to do either option (without getting access denied errors) is to use the AWS account root user's credentials.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!