Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flush action doesn't use proper region while using S3 #57

Open
Upgreydd opened this issue Jun 19, 2020 · 3 comments
Open

Flush action doesn't use proper region while using S3 #57

Upgreydd opened this issue Jun 19, 2020 · 3 comments

Comments

@Upgreydd
Copy link

Upgreydd commented Jun 19, 2020

Finally configured s3 cache, but endpoint: https://my-bucket-drone.s3.ap-south-1.amazonaws.com which is in ap-south-1 with flush returns:

The authorization header is malformed; the region 'us-east-1' is wrong; expecting 'ap-south-1' 

rebuild and restore works fine ;)

@donny-dont
Copy link
Contributor

Ok cool so it looks like I would need to parse urls of the scheme

https://bucket-name.s3.Region.amazonaws.com/key name

And this scheme

https://s3.Region.amazonaws.com/bucket-name/key name

And I could take s3 urls but those would need to provide the region

S3://bucket-name/key-name

From https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingBucket.html

@Upgreydd
Copy link
Author

Upgreydd commented Jun 22, 2020

@donny-dont There's a region in env vars so probably S3://bucket-url will be more AWS way.
BTW. Probably you're parsing in rebuild and restore actions cause they works fine, only flush failures.

@donny-dont
Copy link
Contributor

@Upgreydd #59 I think might get your issues solved. If you can build it locally and try it against things that'd be super helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants