【发布时间】:2020-12-25 01:43:13
【问题描述】:
我正在使用get-products CLI 来获取不同区域的 ElastiCache 实例的定价。
我只是查询了返回的价格数量,我在某些地区得到了很好的结果:
bash-5.0$ location='us east (ohio)'
aws pricing get-products --profile=redislabs --service-code=AmazonElastiCache --filter Type=TERM_MATCH,Field=Location,Value="$location" --output json --query 'length(PriceList)'
输出:
122
但其他地区返回 0(例如“欧洲(斯德哥尔摩)”)
bash-5.0$ location='europe (stockholm)'
aws pricing get-products --profile=redislabs --service-code=AmazonElastiCache --filter Type=TERM_MATCH,Field=Location,Value="$location" --output json --query 'length(PriceList)'
输出:
0
这是为什么?当我可以转到AWS ElastiCache pricing page 并看到欧洲(斯德哥尔摩)的产品有很多价格时,为什么定价 CLI 会返回 0 个结果?
(我已尝试更改位置的大小写,但这没有区别 - 无论位置在什么情况下都有效。)
【问题讨论】: