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

ERROR : precheck.txt: Failed to copy: InvalidAccessKeyId: The AWS Access Key Id you provided does not exist in our records. [BUG] #7401

Closed
ShakeelHussain opened this issue May 21, 2024 · 8 comments
Assignees
Labels
kind/bug Something isn't working Stale
Milestone

Comments

@ShakeelHussain
Copy link

Describe the bug
We are trying to use backup repo with aws s3

To Reproduce
Steps to reproduce the behavior:
run kbcli to create backup repo with aws access key and secret
kbcli backuprepo create my-repo
--provider s3
--region ap-southeast-1
--bucket mongodb-backup-bucket
--access-key-id
--secret-access-key <ACCESS_KEY>
--access-method Tool --default

@ShakeelHussain ShakeelHussain added the kind/bug Something isn't working label May 21, 2024
@zjx20
Copy link
Contributor

zjx20 commented May 21, 2024

Hi @ShakeelHussain, this error message is returned by AWS, indicating that the AK/SK you provided is invalid. Please make sure you didn't make a typo while typing in the command line.

You can also try using the s3cmd tool to verify whether the AK/SK is valid, for example:

brew install s3cmd

s3cmd --access_key <ACCESS_KEY> \
      --secret_key <SECRET_KEY> \
      --region ap-southeast-1 \
      ls

@weicao
Copy link
Contributor

weicao commented May 22, 2024

Hi @ShakeelHussain, this error message is returned by AWS, indicating that the AK/SK you provided is invalid. Please make sure you didn't make a typo while typing in the command line.

You can also try using the s3cmd tool to verify whether the AK/SK is valid, for example:

brew install s3cmd

s3cmd --access_key <ACCESS_KEY> \
      --secret_key <SECRET_KEY> \
      --region ap-southeast-1 \
      ls

@ShakeelHussain does it solve your problem?

@shaarif-khan
Copy link

I am facing the same issue; I have been providing the sts token of the assume role which has s3AllAccess, but I guess I have to provide some other access_key and secret_key. could you please guide me which credentials to provide?

@zjx20
Copy link
Contributor

zjx20 commented May 22, 2024

I am facing the same issue; I have been providing the sts token of the assume role which has s3AllAccess, but I guess I have to provide some other access_key and secret_key. could you please guide me which credentials to provide?

@shaarif-khan
KubeBlocks currently doesn't support using the sts token, you will have to use the accessKey and secretKey mechanism.

Please follow this doc from AWS to obtain your credentials. And then try again with:

# Note: the keys in this command are from the AWS doc, and you should replace them with yours.
kbcli backuprepo create my-repo \
  --provider s3 \
  --region ap-southeast-1 \
  --bucket your-bucket \
  --access-key-id "AKIAIOSFODNN7EXAMPLE" \
  --secret-access-key "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY" \
  --access-method Tool --default

@shaarif-khan
Copy link

@zjx20 Thankyou that worked,
is there any future plan to have a feature to use assume role credentials with it?

@zjx20
Copy link
Contributor

zjx20 commented May 23, 2024

@zjx20 Thankyou that worked, is there any future plan to have a feature to use assume role credentials with it?

I'm afraid not, but could you tell us more about your use case and why you need to use AssumeRole?

Copy link

This issue has been marked as stale because it has been open for 30 days with no activity

@github-actions github-actions bot added the Stale label Jun 24, 2024
@zjx20
Copy link
Contributor

zjx20 commented Jun 24, 2024

Close for now. Require more input from users.

@zjx20 zjx20 closed this as completed Jun 24, 2024
@github-actions github-actions bot added this to the Release 0.8.4 milestone Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working Stale
Projects
None yet
Development

No branches or pull requests

6 participants