【发布时间】:2021-07-21 14:42:16
【问题描述】:
我想在不使用 --global-cluster-identifier 选项的情况下查询 AWS RDS 全局集群,因为在我的自动化中,我的代码不知道标识符,所以我想使用 Engine 获取集群名称并过滤 GlobalClusterIdentifer 是否它是否包含给定的值。
这是我的 cli 命令,它显示 Engine 或 GlobalClusterIdentifer。如何使用 --query 选项并完成它。
aws rds describe-global-clusters --query 'GlobalClusters[].Engine' --output text
aws rds describe-global-clusters --query 'GlobalClusters[].GlobalClusterIdentifer' --output text
所以我需要的是,我想查询引擎类型是 aurora-postgresql 并获取过滤引擎的 GlobalClusterIdentfier。
有人可以帮我解决这个问题吗?
【问题讨论】:
标签: amazon-web-services amazon-rds aws-cli