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:
- Created an RDS instance (while being logged in with the root user);
- Created a new IAM user to a group that has the AdministratorAccess[*] policy added;
- Configured the aws cli to use the named user's access keys and the same region as the RDS instance;
Ran the command
aws rds describe-db-instances. The result is:$ aws rds describe-db-instances { "DBInstances": [] }
I would have expected to see my RDS instance listed. Am I missing something?
[*] The policy json contains this:
"Effect": "Allow",
"Action": "*",
"Resource": "*"
aws rds describe-db-instances --region eu-west-2If it doesn't work, then the CLI is getting the credentials from somewhere else. - helloV