What could be the reason, e.g. which policy setting would forbid (I am not administering that bucket) me being able to connect to the bucket at all
$> ./s3-ls ~/.s3cfg-hcp500 s3://hcp-openaccess/HCP/142626/.xdlm/142626_3T_tfMRI_LANGUAGE_preproc.json
Connecting to bucket: hcp-openaccess
Traceback (most recent call last):
File "./s3-ls", line 34, in <module>
bucket = conn.get_bucket(bucket_name)
File "/usr/lib/python2.7/dist-packages/boto/s3/connection.py", line 502, in get_bucket
return self.head_bucket(bucket_name, headers=headers)
File "/usr/lib/python2.7/dist-packages/boto/s3/connection.py", line 535, in head_bucket
raise err
boto.exception.S3ResponseError: S3ResponseError: 403 Forbidden
while e.g. "s3cmd ls" works (although info doesn't):
$> s3cmd -c ~/.s3cfg-hcp500 ls s3://hcp-openaccess
DIR s3://hcp-openaccess/HCP/
$> s3cmd -c ~/.s3cfg-hcp500 info s3://hcp-openaccess
ERROR: Access to bucket 'hcp-openaccess' was denied
ERROR: S3 error: 403 (AccessDenied): Access Denied
for completeness, that s3-ls script of mine is here:
https://github.com/yarikoptic/datalad/blob/rf-crawler-new-design/tools/s3-lsAny help would be much appreciated.