SSM global-infrastructure missing local-zone usw2-sea1-az1

0

I need to display a list of available local-zones to my users. The list needs to show a meaningful local-zone location (Phoenix, Seattle, Los Angeles...). The only AWS API that I know of that can access this information is an SSM get-parameters-by-path request for /aws/service/global-infrastructure/local-zones.

When I run this query, the results are missing at least one local-zone entry 'usw2-sea1-az1' (Seattle).

If this is an AWS data error, is there a timeline on when this might get fixed/updated? Are there better methods for retrieving a local-zone's human-readable location?

wbr
已提问 7 个月前164 查看次数
1 回答
0

You can also use describe-availability-zones of EC2 API to list local zones.

% aws  ec2 describe-availability-zones --region=us-west-2 --filters Name=zone-type,Values=local-zone  --all-availability-zones --query 'AvailabilityZones[].[State, OptInStatus, ZoneName]' --output text
available       not-opted-in    us-west-2-den-1a
available       not-opted-in    us-west-2-las-1a
available       not-opted-in    us-west-2-lax-1a
available       not-opted-in    us-west-2-lax-1b
available       not-opted-in    us-west-2-pdx-1a
available       not-opted-in    us-west-2-phx-2a
available       not-opted-in    us-west-2-sea-1a

You should also remember to opt-in for local zone but I don't think that has anything to do with Seattle local zone missing from SSM parameters as I can see many other zones that I haven't opt-in.

profile picture
专家
Kallu
已回答 7 个月前
  • Well, I'm opted in to all of the local zones within the scope of my service, but more importantly, describe-availability-zones does not show the zone location. The only API that shows actual zone location (to my knowledge) is the SSM API.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则