我创建了一个具有AmazonRDSReadOnlyAccess
权限的 IAM 用户(仅限 CLI)。现在,每次我尝试列出我的数据库实例时,我都会得到一个空的 JSON 对象,即使我有一个活动的 RDS 实例:
aws rds describe-db-instances
{
"DBInstances": []
}
我还尝试指定我的实例 ID(实例标识符确实存在):
aws rds describe-db-instances --db-instance-identifier mydb
An error occurred (DBInstanceNotFound) when calling the \
DescribeDBInstances operation: DBInstance vipbilet-db not found.
我在这里做错了什么?
很可能您查询的是错误的区域。试试
aws --region us-east-1 rds describe-db-instances
。将us-east-1替换为您拥有实例的区域。