en Lopes
en Lopes

Reputation: 2123

AWS: Find the endpoint of my DB Instance using the cli

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

Answers (1)

John Rotenstein
John Rotenstein

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

See: Configuring the AWS CLI

Upvotes: 2

Related Questions