Boto supports multiple ways to provide AWS credentials (key and key_id) besides just as environment variables. More info in the boto docs.
But basically instead of requiring environment variables see fs/s3fs.py we can let boto pull it from the ~/.aws/credentials file (supported by boto, boto3 and other AWS SDKs) or other standardized locations as well as from IAM roles (using ec2 instance metadata magic) when running on EC2 without having to hard-code credentials.
Boto supports multiple ways to provide AWS credentials (key and key_id) besides just as environment variables. More info in the boto docs.
But basically instead of requiring environment variables see fs/s3fs.py we can let boto pull it from the ~/.aws/credentials file (supported by boto, boto3 and other AWS SDKs) or other standardized locations as well as from IAM roles (using ec2 instance metadata magic) when running on EC2 without having to hard-code credentials.