Closed ccomb closed 1 year ago
Apparently the problem comes from amazonka? https://hackage.haskell.org/package/amazonka-1.6.1/docs/Network-AWS.html#g:5 Is there a way to support a different region?
Unfortunately will need an upgrade to amazonka-2
.
In the interim you could find a region is in common with your storage service and S3 and use that.
Does this resolve the issue for you? https://github.com/haskell-works/cabal-cache/pull/232
Yeah thanks, it works!!
I've spent some time filling an issue in haskell/cabal instead of haskell-works/cabal-cache :-( The detail is here: https://github.com/haskell/cabal/issues/8927 But I'm copying the most relevant part:
Describe the bug
The region seems not parsed correctly
To Reproduce
I'm using the latest prebuilt version 1.0.6.1 I'm trying to make it work with an alternative cloud provider (Scaleway). I have a working bucket and can upload to it, and query it with
aws --endpoint-url https://s3.fr-par.scw.cloud s3 ls s3://cabal-store.prelab.fr/
I've configured the environment variable:
Then I sync to archive:
Then I've discovered the
debug
option and tried tocabal-cache debug s3 cp
from another bucket with the same credentials. I get:So there is a problem with the region:
the region 'us-west-2' is wrong; expecting 'fr-par'
However I cannot specify the region with
--region
. I get the following error:Is the region parsing expecting something like XX-XXXX-XX ?
System information