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

br: Use BR with AWS dynamic access key #39832

Closed
lobshunter opened this issue Dec 12, 2022 · 0 comments · Fixed by tikv/tikv#15722
Closed

br: Use BR with AWS dynamic access key #39832

lobshunter opened this issue Dec 12, 2022 · 0 comments · Fixed by tikv/tikv#15722
Labels
type/feature-request This is a feature requests on the product

Comments

@lobshunter
Copy link

Feature Request

Support using BR with AWS dynamic access key.

Is your feature request related to a problem? Please describe:
Used dynamically generated aws access key pair to run BR:

export AWS_ACCESS_KEY_ID=xxx
export AWS_SECRET_ACCESS_KEY=xxx
export AWS_SESSION_TOKEN=xxx
tiup br backup full \
  --pd "[172.31.21.0:2379](http://172.31.21.0:2379/)" \
  --storage "s3://xxx" \
  --send-credentials-to-tikv=true \
  --s3.region "us-west-2" \
  --log-file backuptable.log

But it failed with

Error: error happen in store 1 at [172.31.25.148:20160](http://172.31.25.148:20160/): s3:<region:"us-west-2" bucket:"xxx" prefix:"xx" access_key:"x" secret_access_key:"x" force_path_style:true >  Io(Custom { kind: Other, error: "failed to put object rusoto error Request ID: None Body: <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>InvalidAccessKeyId</Code><Message>The AWS Access Key Id you provided does not exist in our records.</Message><AWSAccessKeyId>x</AWSAccessKeyId><RequestId>x</RequestId><HostId>x=</HostId></Error>" }): [BR:KV:ErrKVStorage]tikv storage occur I/O error

Describe the feature you'd like:
Some way to make it success(by respecting AWS_SESSION_TOKEN or other approach).

Describe alternatives you've considered:
None

Teachability, Documentation, Adoption, Migration Strategy:
None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature-request This is a feature requests on the product
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant