Skip to content

Commit

Permalink
Merge pull request #341: remote: Show more possible reasons for S3 ac…
Browse files Browse the repository at this point in the history
…cess error
  • Loading branch information
victorlin authored Jan 8, 2024
2 parents b7b8aef + 12137c4 commit c31c75d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nextstrain/cli/remote/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,11 @@ def split_url(url: urllib.parse.ParseResult) -> Tuple[S3Bucket, str]:

except ClientError:
raise UserError(f"""
No bucket exists with the name "{bucket.name}".
Unable to read from S3 bucket "{bucket.name}". Possible reasons:
Buckets are not automatically created for safety reasons.
1. Your AWS credentials are invalid.
2. Your AWS credentails are valid but lack permissions to the bucket.
3. The bucket does not exist (buckets are not automatically created for safety reasons).
""")

return bucket, prefix
Expand Down

0 comments on commit c31c75d

Please sign in to comment.