-
Notifications
You must be signed in to change notification settings - Fork 25
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
Signature v4-only S3 regions are not supported (us-east-2, eu-central-1, etc.) #57
Comments
seeing the same issue, getting either:
or
|
👍 same problem |
+1 finally use us-west-1 and it worked. |
+1 same problem, tried using eu-central-1. |
The ARTIFACTS_REGION=us-west-2 artifacts upload --key=$redacted --secret=$redacted --bucket=foo bar Travis CI does not work:
https://travis-ci.org/Linuxbrew/linuxbrew/builds/107042959#L4267 addons:
artifacts:
debug: true
s3_region: "us-west-2" |
A workaround for Travis CI is to set the environment variable |
Just a long shot question, should the |
I had the same problem, and can confirm that official travis documentation is INCORRECT on this page: https://docs.travis-ci.com/user/uploading-artifacts/ The first example shows the setting being addons.s3_region, but the setting is actually addons.artifacts.s3_region My .travis.yml file now has: - addons:
- postgresql: '9.3'
- artifacts:
- s3_region: "us-west-2" # defaults to "us-east-1"
- paths:
- $(ls tmp/capybara/screenshot_* | tr "\n" ":") Travis: please fix your documentation! Thanks! |
The Travis documentation is incorrect. The variable should be addons.artifacts.s3_region, not addons.s3_region. travis-ci/artifacts#57 (comment) See travis-ci/artifacts#57 (comment)
@dacoinminster could you please create a PR to https://github.com/travis-ci/docs-travis-ci-com? |
It looks like somebody already did (travis-ci/docs-travis-ci-com#524) |
Adding the ARTIFACTS_REGION environment variable did not change anything for me. I used the exact same setup for both, once using |
Hi, everyone, Sorry for the delay. I pushed an update which I think might fix this issue. Could you try it again? |
Hmmm. It doesn't work just yet. https://travis-ci.org/BanzaiMan/travis_production_test/builds/123420742#L165
|
I think https://github.com/goamz/goamz/ might be a better bet going forward (it supports SHA256 https://github.com/mitchellh/goamz/search?utf8=%E2%9C%93&q=sha256). I tried my hand at transitioning to it; some tweaks are necessary to source to compile, but I could not get tests to pass. See https://travis-ci.org/travis-ci/artifacts/builds/123291124#L219-L222. I read sources to figure out why the error is happening, but my understanding of Go was not enough to push me over the edge. |
The Travis documentation is incorrect. The variable should be addons.artifacts.s3_region, not addons.s3_region. travis-ci/artifacts#57 (comment) See travis-ci/artifacts#57 (comment)
Too bad this is still an open issue. Is there any news on this? I think the only way to go now is the official AWS Go SDK at https://github.com/aws/aws-sdk-go which supports V4 out of the box and is updated regularly. I have used this is other projects as well and our production servers upload loads to eu-central-1 buckets using this package. If I have time I can also take a look at this if needed. No idea what your current code is like but I don't think it should be too much work to change packages. |
Same here. It seems it's still not fixed. Works fine with a bucket in Ireland. |
Is there any update on this? I still either get |
We've received some similar reports for eu-west-2, eu-east-2 and eu-central regions through support. |
…s in this area. travis-ci/artifacts#57, travis-ci/artifacts#68 for example.
The full list can be seen here: https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region The issue is reliance on an old AWS library, https://github.com/mitchellh/goamz. |
Is there any workaround I can use until Travis feels it's a problem that they have support for |
I can't believe this issue is still not resolved since 2015, it's almost 2019 out there! The I would gladly use the |
Folks, my team needs this. Can someone at Travis ci please update the aws library? |
Yup. Running into this too. Maybe I just need to install the |
actually, using |
|
Can't believe this problem still exist in 2023 after the 1st reporting in 2015 :( |
Hey, if the AWS SDK hasn't been updated in nearly 7 years, is that a security issue at this point? |
When a S3 bucket is created in region "eu-central-1" / Frankfurt it is impossible to use artifacts to upload to it.
The text was updated successfully, but these errors were encountered: