Ioanna
Ioanna

Reputation: 1367

Access AWS resources from awscli with new IAM admin user

I'm trying to access AWS resources from the aws cli after configuring a new IAM user with admin rights and it acts as if no resource is available.

What I did:

I would have expected to see my RDS instance listed. Am I missing something?

[*] The policy json contains this:

"Effect": "Allow",
"Action": "*",
"Resource": "*"

Upvotes: 0

Views: 102

Answers (1)

helloV
helloV

Reputation: 52375

I do not think IAM privileges is an issue here since there is no error. Is the region in the default profile for AWS credentials configured correctly?

Or try specifying the region explicitly?

aws rds describe-db-instances --region eu-west-2

If it doesn't work, then the CLI is getting the credentials from somewhere else.

Upvotes: 2

Related Questions