Um blog sobre nada

Um conjunto de inutilidades que podem vir a ser úteis

AWS S3 – ListObjectsV2 operation: Access Denied

Posted by Diego on May 27, 2020


Every now and then I fall for this. Upon getting a:

botocore.exceptions.ClientError: An error occurred (AccessDenied) when calling the ListObjectsV2 operation: Access Denied

error, my first course of action is to try to add that exact permission to whatever role I need (something like: s3:ListObjectsV2)

That wont work (despite the fact that the cloudformation template will run just just fine!!) The correct permission to be given is: ‘s3:ListBucket‘, which is nevessary for the following operations:

  • GetObject
  • PutObject
  • CreateBucket

Leave a comment