Reputation: 2123
I want to find the endpoint of my DB Instance using the command-line interface, but I got this error:
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.
I tried to check my credentials, but I got also an error
MacBook-Pro-de-lopes:/ lopes$ cd ~/.aws/credentials
-bash: cd: /Users/lopes/.aws/credentials: Not a directory
Upvotes: 0
Views: 449
Reputation: 269390
It appears you have invalid credentials configured for you AWS Command-Line Interface (CLI).
You can view the configuration via:
cat ~/.aws/credentials
Or, you can view/configure them via:
aws configure
Upvotes: 2