AWS:使用cli查找我的数据库实例的端点

时间:2017-09-23 07:48:48

标签: amazon-web-services amazon-rds aws-cli

我想使用命令行界面找到我的数据库实例的端点,但是我收到了这个错误:

MacBook-Pro-de-lopes:/ lopes$ aws rds describe-db-instances  

A client error (InvalidClientTokenId) occurred when calling the DescribeDBInstances operation: The security token included in the request is invalid.

我试图查看我的凭据,但我也收到了错误

MacBook-Pro-de-lopes:/ lopes$ cd ~/.aws/credentials
-bash: cd: /Users/lopes/.aws/credentials: Not a directory

1 个答案:

答案 0 :(得分:2)

您似乎为AWS Command-Line Interface (CLI)配置了无效的凭据。

您可以通过以下方式查看配置:

cat ~/.aws/credentials

或者,您可以通过以下方式查看/配置它们:

aws configure

请参阅:Configuring the AWS CLI