1 個回答
- 最新
- 最多得票
- 最多評論
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.
已回答 10 個月前
相關內容
- 已提問 1 年前
- AWS 官方已更新 8 個月前
- AWS 官方已更新 1 年前