krobertson / deb-s3

Easily create and manage an APT repository on S3 -- NO LONGER MAINTAINED
MIT License
482 stars 148 forks source link

AWS_DEFAULT_REGION environment variable is not respected #123

Closed hertzsprung closed 6 years ago

hertzsprung commented 7 years ago

The --s3-region flag defaults to us-east-1 and does not respect the AWS_DEFAULT_REGION environment variable. My bucket is in eu-west-1 and uploading with deb-s3 gives a warning:

 deb-s3 upload --bucket mybucket mypackage.deb 
>> Retrieving existing manifests
S3 client configured for "us-east-1" but the bucket "mybucket" is in "eu-west-1";
Please configure the proper region to avoid multiple unnecessary redirects and signing attempts