I have been able to successfully access files on an AWS bucket via the syntax
when I store my AWS credentials in the file .aws/credentials.
However, when I try to use .aws/config instead, I get the error message
Location 's3://bucketname/filename.csv' requires credentials. You must setup
an AWS credentials file, or set the environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.
The .aws/config file method works for both command line and Python access, so I am confident I have the file itself correct.