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

From wikieduonline
Jump to navigation Jump to search
 
(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
 +
aws s3 ls
 +
An error occurred ([[AccessDenied]]) when calling the ListBuckets operation: [[Access Denied]]
  
 +
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 ([[S3 read-write access to a certain bucket]]):
[[aws s3 ls]]
+
        {
 +
            "Effect": "Allow",
 +
            "Action": [
 +
                "[[s3:ListAllMyBuckets]]"
 +
            ],
 +
            "Resource": "*"
 +
        },
 +
 
 +
== Errors ==
 +
* {{s3 errors TOC}}
 +
* <code>[[An error occurred (AccessDenied) when calling the AssumeRole operation]]</code>
  
 
== Related ==
 
== Related ==
* [[AWS CLI]]
+
* [[aws s3api list-buckets]]
* <code>[[export]] | grep AWS</code>
+
* [[s3:]]
 +
* <code>[[export]] | grep [[AWS_PROFILE]]</code>
 +
* <code>[[aws sts get-session-token]]</code>
 +
* <code>[[aws sts get-caller-identity]]</code>
  
 
== See also ==
 
== See also ==
 +
* {{s3 IAM}}
 +
* {{aws s3 ls}}
 
* {{aws cli config}}
 
* {{aws cli config}}
 
* {{IAM}}
 
* {{IAM}}
  
 
[[Category:AWS]]
 
[[Category:AWS]]

Latest revision as of 10:17, 3 September 2023

Advertising: