Getting error "The AWS Access Key Id you provided does not exist in our records" when trying to sync

vsingh

I am trying to download all the available files from my s3 bucket to my local machine. I have installed AWS cli. and then I have used aws configure to setup access key and secret key too. I am facing issue while trying to execute the following command:

$ aws s3 sync s3://tempobjects .

Setup commands

LAMU02XRK97:s3 vsing$ export AWS_ACCESS_KEY_ID=*******kHXE
LAMU02XRK97:s3 vsing$ export AWS_SECRET_ACCESS_KEY=******Ssv

LAMU02XRK97:s3 vsing$ aws configure list
      Name                    Value             Type    Location
      ----                    -----             ----    --------
   profile                <not set>             None    None
access_key     ****************kHXE shared-credentials-file    
secret_key     ****************pSsv shared-credentials-file    
    region                us-east-1      config-file    ~/.aws/config

Error:

LAMU02XRK97:s3 vsing$ aws s3 sync s3://tempobjects .
fatal error: An error occurred (InvalidAccessKeyId) when calling the ListObjectsV2 operation: The AWS Access Key Id you provided does not exist in our records.
Pacifist

I have replicated the scenario and to make it work you need to make sure that the user you are using for CLI is having the same access keys configured in the IAM.

Below is what configured in AWS CLI.

enter image description here

Below is what configured in AWS IAM for the same user :

enter image description here

Access Key ending with QYHP is configured at both the places and hence it is working fine for me.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

The AWS Access Key Id you provided does not exist in our records

What should I do to fix "The AWS Access Key Id you provided does not exist in our records" using boto3

Riak-CS cluster broken after only 1/3 node failed! The AWS Access Key Id you provided does not exist in our records

Deadlock error when trying to sync goroutines

Getting error when trying to remove multiple directories

Getting error when trying to enumerate enum

Getting error when trying to subscribe to function in ngOnInit

Getting an error with Instagram when trying to authenticate

Getting error when trying to use cross validation

Getting error when trying to display button

Getting error when trying to store loop to array

Getting an error when trying to check path

Getting This Error When Trying To Animate An ElevatedButton

Getting error when trying to resize an inserted image

Getting an error when trying to create an agent pool

Getting An Error when trying to create a subcollection in Firestore

Getting error when trying to use pointer with struct

Getting error when trying to perform form validation

getting an error when trying to load ODBC on Ubuntu

Getting an error when trying to scrape a table

Getting an error when trying to delete team Django

getting error when trying to execute an Sql command

Getting an error when trying to import matplotlib

Getting error when trying to construct FileWriter

Getting error when trying to generate a migration file

Getting error when trying to install PHP on Ubuntu

Getting error when trying to interpolate variable

Getting error when trying to round available RAM

Getting an error when trying to display images