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

141
Visualizações
s3api getobject permission denied

I am trying to fetch a file from s3 using aws-cli

aws s3api get-object --bucket <bucket_name> --key /foo.com/bar/summary-report-yyyymmdd.csv.gz temp_file.csv.gz --profile <profile_name>

but I am getting the following error -

An error occurred (AccessDenied) when calling the GetObject operation: Access Denied

I've rechecked my configuration using

aws configure --profile <profile_name>

and everything seems to be correct there. I am using the same credentials to browse and fetch the file on S3 browser without any issue.

Documentation is of minimal use as I have very limited access to this bucket. I cannot verify the permissions or use

aws s3 --profile <profile_name> ls
about 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

AccessDenied can mean you dont have permission but its the error returned if the object does not exist (you can read here for the reason why to use this error)

You can make sure you have access to the bucket using the aws s3api list-objects command like

aws s3api list-objects --bucket <bucket_name> --query 'Contents[].{Key: Key, Size: Size}' --profile <profile_name>

Most probably in your case the issue is with the user of / in front of the key

aws s3api get-object --bucket <bucket_name> --key foo.com/bar/summary-report-yyyymmdd.csv.gz temp_file.csv.gz --profile <profile_name>
about 4 years ago · Santiago Trujillo Relatório

0

For me the issue was kms access. I found this helpful: https://aws.amazon.com/premiumsupport/knowledge-center/s3-troubleshoot-403/

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