Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from s3fs.core import S3FileSystem
- client_kwargs={"aws_access_key_id": "blah", "aws_secret_access_key": "blah2"}
- conn = S3FileSystem(client_kwargs=client_kwargs)
- conn.exists(path="my_path")
- botocore.exceptions.ClientError: An error occurred (AccessDenied) when calling the ListObjectsV2 operation: Access Denied
- {
- "Id": "Policy1566429314117",
- "Version": "2012-10-17",
- "Statement": [
- {
- "Sid": "Stmt1566429308194",
- "Action": [
- "s3:ListBucket"
- ],
- "Effect": "Allow",
- "Resource": "arn:aws:s3:::myBucket",
- "Principal": {
- "AWS": [
- "arn:aws:iam::111549047503:user/myUser"
- ]
- }
- }
- ]
- }
- {
- "Version": "2012-10-17",
- "Statement": [
- {
- "Sid": "Stmt1566429639314",
- "Action": [
- "s3:ListBucket"
- ],
- "Effect": "Allow",
- "Resource": "arn:aws:s3:::myBucket"
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement