Why am I receiving errors when running AWS CLI commands?
2 分的閱讀內容
0
I'm receiving errors when running AWS Command Line Interface (AWS CLI) commands on my resource. How do I troubleshoot this?
Resolution
Verify that you have the latest version of the AWS CLI installed. The AWS CLI is updated frequently. You can't access new released features when running an older CLI version. For information on how to update your version of the AWS CLI, see the General: Ensure you're running a recent version of the AWS CLI section in Troubleshooting AWS CLI errors.
Make sure that you're using the correct credentials to make the API call. If there are multiple sets of credentials on the instance, credential precedence might affect which credentials the instance uses to make the API call. Verify the set of credentials that you're using by running the aws sts get-caller-identity command. For more information, see Why is my Amazon EC2 instance using IAM user credentials instead of role credentials?
Make sure that the AWS CLI program file has run permission on Linux or macOS. For more information, see the I get access denied errors section in Troubleshooting AWS CLI errors.