Difference between revisions of "An error occurred (AccessDenied) when calling the ListBuckets operation: Access Denied"

From wikieduonline
Jump to navigation Jump to search
Line 5: Line 5:
 
  Solution: try to specify the name of the bucket you have permission, [[aws s3 ls]] s3://yourbucketname
 
  Solution: try to specify the name of the bucket you have permission, [[aws s3 ls]] s3://yourbucketname
  
  [[aws s3api list-buckets]]
+
  Or add this to your policy:
[[aws s3 ls]]
+
        {
 +
            "Effect": "Allow",
 +
            "Action": [
 +
                "[[s3:ListAllMyBuckets]]"
 +
            ],
 +
            "Resource": "*"
 +
        },
  
 
== Errors ==
 
== Errors ==
Line 13: Line 19:
  
 
== Related ==
 
== Related ==
 +
* [[aws s3api list-buckets]]
 
* [[s3:]]
 
* [[s3:]]
 
* <code>[[export]] | grep [[AWS_PROFILE]]</code>
 
* <code>[[export]] | grep [[AWS_PROFILE]]</code>

Revision as of 12:04, 17 July 2023

Advertising: