Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

199
Visualizações
Amazon S3 disable access of bucket root

I have a AWS S3 bucket use to share file (with anyone, public access). So my bucket is set as public. Normally to access at this file you need the url but when you GET my bucket root you got a xml with index all my file. So I want to disable this xml and make my file private without the exact url, do you have a solution ?

about 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

0

This bucket policy from the Bucket Policy Examples documentation page shows how to Grant Read-Only Permission to an Anonymous User:

{
  "Version":"2012-10-17",
  "Statement":[
    {
      "Sid":"AddPerm",
      "Effect":"Allow",
      "Principal": "*",
      "Action":["s3:GetObject"],
      "Resource":["arn:aws:s3:::examplebucket/*"]
    }
  ]
}

They will be able to access files, but will not be able to list, delete or upload objects.

about 4 years ago · Santiago Trujillo Relatório

0

The permissions interface allows to to control this directly.

  1. Open the root of the bucket in the management console. At the top, you should see several tabs. tabs interface
  2. Click on the permissions tab. A set of four white buttons will appear.
  3. Click on the 'Access Control List' button.
  4. In the Public Access section, there will be a radio button with the word Everyone next to it. Click it. radio button
  5. You get a dialog on the right. Make sure to uncheck the List Objects option. access to root list
  6. Save and you're done.

If you try to look at your root, you should now see Access Denied Access denied

about 4 years ago · Santiago Trujillo Relatório

0

Just head over to the AWS S3 console and select the file. You can change this files permission so that it suits your needs.

You could try it the other way around as well. Disable public bucket access and only make the files you want to share public. This should work as well.

about 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda