3 Answers
- Newest
- Most votes
- Most comments
0
The error above suggests that there is an issue with the signature of the request. This could indicate an incorrect access key or secret key, or a problem with the signing method being used. To resolve the issue, you can try this
- Check that the access key and secret key being used are correct. aws configure
- Check that the AWS CLI is configured to use the correct region. aws configure list
- Check that the user has the necessary permissions to access the S3 bucket. You can do this by checking the policy attached to the user's IAM role, and ensuring that it grants the necessary permissions for the S3 bucket.
- Double check that the S3 bucket name is correct and that the user has permissions to access it.
answered 2 years ago
0
Hi,
This error is usually related with the AWS credentials, so I recommend you take the following actions:
- Open the
~/.aws/credentials
file and check thataws_access_key_id
andaws_secret_access_key
values matches your IAM user credentials. - Check that you have not set the
AWS_ACCESS_KEY_ID
andAWS_SECRET_ACCESS_KEY
environment variables, since AWS cli will use those values instead what is defined at the~/.aws/credentials
file. - Finally, if the error still persists, check that the time on the system is in sync to the current time.
0
In addition to the above, specify --profile
on the command to use the specific profile in your ~/.aws/credentials file. This will override any environment variables or instance profile (if running from EC2).
You can also check who you are by running aws sts get-caller-identity --profile YOUR_PROFILE_NAME
.
Relevant content
- asked 3 years ago
- asked 4 years ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 2 months ago