Closed irvifa closed 5 years ago
Seems like the AWS SDK is not backwards compatible. Either you need to downgrade, or find a workaround.
@iconara I see, so what version of aws-sdk-core should I install for this library?
Anything before v3
I just run into this issue too. @irvifa did you manage to get around this by installing a specific version?
@michael-erasmus I've been able to use this with aws-sdk 3.0.1 by specifying the environment variables AWS_ACCESS_KEY_ID
& AWS_SECRET_ACCESS_KEY
and not using --aws-credentials
.
I was initially using a role that also has an AWS_SESSION_TOKEN
which gets you a different error (with redactions):
PG::InternalError: ERROR: S3ServiceException:The AWS Access Key Id you provided does not exist in our records.,Status 403,Error InvalidAccessKeyId,Rid ###############,ExtRid ##########################,CanRetry 1
DETAIL:
-----------------------------------------------
error: S3ServiceException:The AWS Access Key Id you provided does not exist in our records.,Status 403,Error InvalidAccessKeyId,Rid ###############,,ExtRid ##########################,,CanRetry 1
code: 8001
context: Listing bucket=#### prefix=###/###/###/###
query: 0
location: s3_utility.cpp:720
process: padbmaster [pid=28309]
-----------------------------------------------
~/bigshift/lib/bigshift/redshift_unloader.rb:24:in `async_exec'
~/bigshift/lib/bigshift/redshift_unloader.rb:24:in `unload_to'
~/bigshift/lib/bigshift/cli.rb:51:in `unload'
~/bigshift/lib/bigshift/cli.rb:29:in `run'
~/bigshift/bin/bigshift:6:in `<top (required)>'
~/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/bin/bigshift:23:in `load'
~/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/bin/bigshift:23:in `<top (required)>'
It's possible to update the code to pass the token through however it then fails in GCP with the same error which isn't so correctable. In the end I created a dedicated user with only the minimum IAM permissions.
Hey, I got an error when using aws-sdk-core-3.6.0