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

360
Visualizações
Make a file in s3 public using python and boto3

I need an update for boto3 to this question Make a file in s3 public using python and boto

s3.Bucket('gentle-persuader-emoji').put_object(Key=emoji_png_file, Body=image)
response = s3.object(emoji_png_file).put_object_acl('ACL=public-read')

gives error

AttributeError: 's3.ServiceResource' object has no attribute 'object'
about 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Since you are upload the object, the easiest method is to specify the Access Control List (ACL) as part of the upload:

s3.Bucket('gentle-persuader-emoji').put_object(Key=emoji_png_file, Body=image, ACL='public-read')

Alternatively, you may wish to add a Bucket Policy that applies to the whole bucket (or a specific path within the bucket), rather than applying the policy on each individual object.

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