I have an admin account for AWS, and am attempting to access AWS S3 using the aws-cli so that I can develop a script file to create back-ups. I have verified my Access Key and Secret Key are valid by setting up Cloudberry in parallel. Using Cloudberry, I am able to access the AWS S3 bucket where the back-ups will be placed.
Whenever I attempt to access aws s3 using the aws-cli, I receive an error. Example:
aws s3 ls
results in:
An error occurred (InvalidAccessKeyId) when calling the ListBuckets operation: The AWS Access Key ID you provided does not exist in our records.
I have tried the following with no different result: 1. Setting up a separate profile than the default
Rotating the access key and secret key
Re-configuring the default profile and hand typing in the Access Key and Secret Key
- Running the command
aws sts get-caller-identity
What may be causing this issue? What else may I be able to try to get around this roadblock?
---- Additional Details ----
I have verified that the aws folder containing the executable and the hidden folder containing the configuration/credentials are both added to the path variables.
I have run the aws s3 ls --debug command also, and the credentials file is shared. The http request ("Sending http request: https://s3.amazonaws.com/,...") goes out with the expected Access and Secret Key. Then a new HTTPs connection is started, and the next line is ("https://s3.amazonaws.com:443 "GET / HTTP/1.1" 403 None"). The response body then returns with the error shared earlier.
~/.aws/credentialsand~/.aws/configthen run the command you will get the actual error. once this done then reconfigureaws configuredo not type access key and secret usecopy-pastethenaws sts get-caller-identity- Adiiiaws configureto set the access key and secret. How would I check if I have anything supplying a different endpoint? - lisa.berry