1 Answer
- Newest
- Most votes
- Most comments
0
This error message typically means that you use an AccessKeyId which doesn't exist. Based on the information you have provided, I assume that you're using AccessKeyId and AccessKey directly, i.e. not an IAM role and temporary credentials.
To fix the issue, take the following steps:
- Check how you instantiate your AWS config: Are AccessKeyId, AccessKey and Region correctly set?
- Test the same operation on the CLI (using the same AccessKey): Does it work there?
- Check in the AWS Console if the access key (ID) exists, and that the user has sufficient permissions
- Check if some other code is overwriting your configuration
Note that in general, you should always be careful using AccessKeys directly in code, as this might lead to hard-coded credentials.
answered 9 months ago
Relevant content
- Accepted Answerasked 2 years ago
- asked 4 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 4 months ago