segmentio / aws-billing

An API to learn how much your AWS hosting costs every month
40 stars 10 forks source link

eu-central-1 is an invalid region #1

Open DominiksCode opened 7 years ago

DominiksCode commented 7 years ago

The Region eu-central-1 is not available

tdmalone commented 6 years ago

I'm fairly sure it is a valid region... it's listed as a valid region endpoint for many AWS services in the official documentation. I don't think its that new either?

gregharvey commented 5 years ago

This is because of a change in the authentication method for new AWS regions, as of quite some time ago, and also affects eu-west-2 (London). I have forked this project and fixed the issue, tested with eu-west-2, and it seems to work. I basically removed the obsolete knox package, which didn't support the authorisation method required by AWS now for S3, and replaced it with the proper aws-sdk package. I've had a pull request here forever, which has a few enhancements in it now (it keeps growing!) ... see: https://github.com/segmentio/aws-billing/pull/2

Or just use my fork directly, it's here:

https://github.com/codeenigma/aws-billing