Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

594
Vistas
boto3: An error occurred (AccessDenied) when calling the ListBuckets operation: Access Denied?

I get this error in terminal when I try to list all the buckets using boto3: An error occurred (AccessDenied) when calling the ListBuckets operation: Access Denied.

Here's the code:

for bucket in s3.buckets.all():
    print(bucket.name)

I found a stack overflow question (Why is my terminal returning this s3 error?) and below is the proposed solution. I'm very unfamiliar with AWS so I need a bit of guidance.

Where can I find the dictionary inside like the one below inside the AWS console?

{
"Sid": "AllowListingOfAllBuckets",
"Effect": "Allow",
"Action": [
    "s3:ListAllMyBuckets"
],
"Resource": [
    "arn:aws:s3:::*"
]
}
over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

you may add the following to the Actions array in the policy: s3:ListBucket

{
    "Sid": "AllowListingOfAllBuckets",
    "Effect": "Allow",
    "Action": [
       "s3:ListAllMyBuckets",
       "s3:ListBuckets",
    ],
    "Resource": [
       "arn:aws:s3:::*"
    ]
}

You may need to update the Resource: "Resource": "arn:aws:s3:::mywebsite.media/*"

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda