AWS RDS CLI:未列出数据库实例

AWS RDS CLI:未列出数据库实例

我已创建具有权限的 IAM 用户(仅限 CLI)AmazonRDSReadOnlyAccess。现在,每次我尝试列出我的数据库实例时,我都会得到一个空的 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.

我在这里做错了什么?

答案1

您很可能正在查询错误区域。 尝试aws --region us-east-1 rds describe-db-instances. 替换美国东部-1与您实例所在的区域一致。

相关内容