调用 AWS 服务、区域、端点、可用区、本地区域以及 Parameter Store 中 Wavelength 区域的公有参数
您可以使用以下路径调用 AWS 区域、服务、端点、可用区和 Wavelength 区域的公有参数。
/aws/service/global-infrastructure
注意
目前,仅在以下 AWS 区域 中支持查询路径 /aws/service/global-infrastructure
:
-
美国东部(弗吉尼亚州北部)(us-east-1)
-
美国东部(俄亥俄州)(us-east-2)
-
美国西部(加利福尼亚北部)(us-west-1)
-
美国西部(俄勒冈州)(us-west-2)
-
亚太地区(香港)(ap-east-1)
-
亚太地区(孟买)(ap-south-1)
-
亚太地区(首尔)(ap-northeast-2)
-
亚太地区(新加坡)(ap-southeast-1)
-
亚太地区(悉尼)(ap-southeast-2)
-
亚太地区(东京)(ap-northeast-1)
-
加拿大(中部)(ca-central-1)
-
欧洲地区(法兰克福)(eu-central-1)
-
欧洲地区(爱尔兰)(eu-west-1)
-
欧洲(伦敦)(eu-west-2)
-
欧洲地区(巴黎)(eu-west-3)
-
欧洲地区(斯德哥尔摩)(eu-north-1)
-
南美洲(圣保罗)(sa-east-1)
如果您在其他商业区域工作,则可以在查询中指定支持的区域以查看结果。例如,如果您在加拿大西部(卡尔加里)(ca-west-1)区域工作,则可以在查询中指定加拿大(中部)(ca-central-1):
aws ssm get-parameters-by-path \
--path /aws/service/global-infrastructure/regions \
--region ca-central-1
查看处于活动状态的 AWS 区域
您可以在 AWS Command Line Interface (AWS CLI) 中使用以下命令查看所有活动 AWS 区域的列表。
此命令会返回如下信息。
[ "/aws/service/global-infrastructure/regions/af-south-1", "/aws/service/global-infrastructure/regions/ap-east-1", "/aws/service/global-infrastructure/regions/ap-northeast-3", "/aws/service/global-infrastructure/regions/ap-south-2", "/aws/service/global-infrastructure/regions/ca-central-1", "/aws/service/global-infrastructure/regions/eu-central-2", "/aws/service/global-infrastructure/regions/eu-west-2", "/aws/service/global-infrastructure/regions/eu-west-3", "/aws/service/global-infrastructure/regions/us-east-1", "/aws/service/global-infrastructure/regions/us-gov-west-1", "/aws/service/global-infrastructure/regions/ap-northeast-2", "/aws/service/global-infrastructure/regions/ap-southeast-1", "/aws/service/global-infrastructure/regions/ap-southeast-2", "/aws/service/global-infrastructure/regions/ap-southeast-3", "/aws/service/global-infrastructure/regions/cn-north-1", "/aws/service/global-infrastructure/regions/cn-northwest-1", "/aws/service/global-infrastructure/regions/eu-south-1", "/aws/service/global-infrastructure/regions/eu-south-2", "/aws/service/global-infrastructure/regions/us-east-2", "/aws/service/global-infrastructure/regions/us-west-1", "/aws/service/global-infrastructure/regions/ap-northeast-1", "/aws/service/global-infrastructure/regions/ap-south-1", "/aws/service/global-infrastructure/regions/ap-southeast-4", "/aws/service/global-infrastructure/regions/ca-west-1", "/aws/service/global-infrastructure/regions/eu-central-1", "/aws/service/global-infrastructure/regions/il-central-1", "/aws/service/global-infrastructure/regions/me-central-1", "/aws/service/global-infrastructure/regions/me-south-1", "/aws/service/global-infrastructure/regions/sa-east-1", "/aws/service/global-infrastructure/regions/us-gov-east-1", "/aws/service/global-infrastructure/regions/eu-north-1", "/aws/service/global-infrastructure/regions/eu-west-1", "/aws/service/global-infrastructure/regions/us-west-2" ]
查看可用的 AWS 服务
您可以使用以下命令查看所有可用 AWS 服务的完整列表,并将其按字母顺序排序。此示例输出已由于空间问题截断。
此命令会返回如下信息。此示例输出已由于空间问题截断。
[ "/aws/service/global-infrastructure/services/accessanalyzer", "/aws/service/global-infrastructure/services/account", "/aws/service/global-infrastructure/services/acm", "/aws/service/global-infrastructure/services/acm-pca", "/aws/service/global-infrastructure/services/ahl", "/aws/service/global-infrastructure/services/aiq", "/aws/service/global-infrastructure/services/amazonlocationservice", "/aws/service/global-infrastructure/services/amplify", "/aws/service/global-infrastructure/services/amplifybackend", "/aws/service/global-infrastructure/services/apigateway", "/aws/service/global-infrastructure/services/apigatewaymanagementapi", "/aws/service/global-infrastructure/services/apigatewayv2", "/aws/service/global-infrastructure/services/appconfig", "/aws/service/global-infrastructure/services/appconfigdata", "/aws/service/global-infrastructure/services/appflow", "/aws/service/global-infrastructure/services/appintegrations", "/aws/service/global-infrastructure/services/application-autoscaling", "/aws/service/global-infrastructure/services/application-insights", "/aws/service/global-infrastructure/services/applicationcostprofiler", "/aws/service/global-infrastructure/services/appmesh", "/aws/service/global-infrastructure/services/apprunner", "/aws/service/global-infrastructure/services/appstream", "/aws/service/global-infrastructure/services/appsync", "/aws/service/global-infrastructure/services/aps", "/aws/service/global-infrastructure/services/arc-zonal-shift", "/aws/service/global-infrastructure/services/artifact", "/aws/service/global-infrastructure/services/athena", "/aws/service/global-infrastructure/services/auditmanager", "/aws/service/global-infrastructure/services/augmentedairuntime", "/aws/service/global-infrastructure/services/aurora", "/aws/service/global-infrastructure/services/autoscaling", "/aws/service/global-infrastructure/services/aws-appfabric", "/aws/service/global-infrastructure/services/awshealthdashboard",
查看支持某个 AWS 服务的区域
您可以查看提供服务的 AWS 区域列表。此示例使用 AWS Systems Manager (ssm
)。
此命令会返回如下信息。
[ "ap-south-1", "eu-central-1", "eu-central-2", "eu-west-1", "eu-west-2", "eu-west-3", "il-central-1", "me-south-1", "us-east-2", "us-gov-west-1", "af-south-1", "ap-northeast-3", "ap-southeast-1", "ap-southeast-4", "ca-central-1", "ca-west-1", "cn-north-1", "eu-north-1", "eu-south-2", "us-west-1", "ap-east-1", "ap-northeast-1", "ap-northeast-2", "ap-southeast-2", "ap-southeast-3", "cn-northwest-1", "eu-south-1", "me-central-1", "us-gov-east-1", "us-west-2", "ap-south-2", "sa-east-1", "us-east-1" ]
查看服务的区域端点
您可以使用以下命令查看服务的区域端点。此命令会查询美国东部(俄亥俄州)(us-east-2)区域。
此命令会返回如下信息。
"ssm.us-east-2.amazonaws.com"
查看完整的可用区详细信息
您可以使用以下命令查看可用区。
此命令会返回如下信息。此示例输出已由于空间问题截断。
{ "Parameters": [ { "Name": "/aws/service/global-infrastructure/availability-zones/afs1-az3", "Type": "String", "Value": "afs1-az3", "Version": 1, "LastModifiedDate": "2020-04-21T12:05:35.375000-04:00", "ARN": "arn:aws:ssm:us-east-2::parameter/aws/service/global-infrastructure/availability-zones/afs1-az3", "DataType": "text" }, { "Name": "/aws/service/global-infrastructure/availability-zones/aps1-az2", "Type": "String", "Value": "aps1-az2", "Version": 1, "LastModifiedDate": "2020-04-03T16:13:57.351000-04:00", "ARN": "arn:aws:ssm:us-east-2::parameter/aws/service/global-infrastructure/availability-zones/aps1-az2", "DataType": "text" }, { "Name": "/aws/service/global-infrastructure/availability-zones/apse3-az1", "Type": "String", "Value": "apse3-az1", "Version": 1, "LastModifiedDate": "2021-12-13T08:51:38.983000-05:00", "ARN": "arn:aws:ssm:us-east-2::parameter/aws/service/global-infrastructure/availability-zones/apse3-az1", "DataType": "text" } ] }
仅查看可用区名称
您可以使用以下命令仅查看可用区的名称。
此命令会返回如下信息。此示例输出已由于空间问题截断。
[ "/aws/service/global-infrastructure/availability-zones/afs1-az1", "/aws/service/global-infrastructure/availability-zones/afs1-az2", "/aws/service/global-infrastructure/availability-zones/afs1-az3", "/aws/service/global-infrastructure/availability-zones/ape1-az1", "/aws/service/global-infrastructure/availability-zones/ape1-az2", "/aws/service/global-infrastructure/availability-zones/ape1-az3", "/aws/service/global-infrastructure/availability-zones/apne1-az1", "/aws/service/global-infrastructure/availability-zones/apne1-az2", "/aws/service/global-infrastructure/availability-zones/apne1-az3", "/aws/service/global-infrastructure/availability-zones/apne1-az4"
查看单个区域中的可用区的名称
您可以使用以下命令查看一个区域(在此示例中为 us-east-2
)中的可用区的名称。
此命令会返回如下信息。
[ "/aws/service/global-infrastructure/regions/us-east-2/availability-zones/use2-az1", "/aws/service/global-infrastructure/regions/us-east-2/availability-zones/use2-az2", "/aws/service/global-infrastructure/regions/us-east-2/availability-zones/use2-az3"
仅查看可用区 ARN
您可以使用以下命令仅查看可用区的 Amazon Resource Name (ARN)。
此命令会返回如下信息。此示例输出已由于空间问题截断。
[ "arn:aws:ssm:us-east-2::parameter/aws/service/global-infrastructure/availability-zones/afs1-az1", "arn:aws:ssm:us-east-2::parameter/aws/service/global-infrastructure/availability-zones/afs1-az2", "arn:aws:ssm:us-east-2::parameter/aws/service/global-infrastructure/availability-zones/afs1-az3", "arn:aws:ssm:us-east-2::parameter/aws/service/global-infrastructure/availability-zones/ape1-az1", "arn:aws:ssm:us-east-2::parameter/aws/service/global-infrastructure/availability-zones/ape1-az2", "arn:aws:ssm:us-east-2::parameter/aws/service/global-infrastructure/availability-zones/ape1-az3", "arn:aws:ssm:us-east-2::parameter/aws/service/global-infrastructure/availability-zones/apne1-az1",
查看本地区域详细信息
您可以使用以下命令查看本地区域。
此命令会返回如下信息。此示例输出已由于空间问题截断。
{ "Parameters": [ { "Name": "/aws/service/global-infrastructure/local-zones/afs1-los1-az1", "Type": "String", "Value": "afs1-los1-az1", "Version": 1, "LastModifiedDate": "2023-01-25T11:53:11.690000-05:00", "ARN": "arn:aws:ssm:us-east-2::parameter/aws/service/global-infrastructure/local-zones/afs1-los1-az1", "DataType": "text" }, { "Name": "/aws/service/global-infrastructure/local-zones/apne1-tpe1-az1", "Type": "String", "Value": "apne1-tpe1-az1", "Version": 1, "LastModifiedDate": "2024-03-15T12:35:41.076000-04:00", "ARN": "arn:aws:ssm:us-east-2::parameter/aws/service/global-infrastructure/local-zones/apne1-tpe1-az1", "DataType": "text" }, { "Name": "/aws/service/global-infrastructure/local-zones/aps1-ccu1-az1", "Type": "String", "Value": "aps1-ccu1-az1", "Version": 1, "LastModifiedDate": "2022-12-19T11:34:43.351000-05:00", "ARN": "arn:aws:ssm:us-east-2::parameter/aws/service/global-infrastructure/local-zones/aps1-ccu1-az1", "DataType": "text" } ] }
查看 Wavelength 区域详细信息
您可以使用以下命令查看 Wavelength 区域。
此命令会返回如下信息。此示例输出已由于空间问题截断。
{ "Parameters": [ { "Name": "/aws/service/global-infrastructure/wavelength-zones/apne1-wl1-nrt-wlz1", "Type": "String", "Value": "apne1-wl1-nrt-wlz1", "Version": 3, "LastModifiedDate": "2020-12-15T17:16:04.715000-05:00", "ARN": "arn:aws:ssm:us-east-2::parameter/aws/service/global-infrastructure/wavelength-zones/apne1-wl1-nrt-wlz1", "DataType": "text" }, { "Name": "/aws/service/global-infrastructure/wavelength-zones/apne2-wl1-sel-wlz1", "Type": "String", "Value": "apne2-wl1-sel-wlz1", "Version": 1, "LastModifiedDate": "2022-05-25T12:29:13.862000-04:00", "ARN": "arn:aws:ssm:us-east-2::parameter/aws/service/global-infrastructure/wavelength-zones/apne2-wl1-sel-wlz1", "DataType": "text" }, { "Name": "/aws/service/global-infrastructure/wavelength-zones/cac1-wl1-yto-wlz1", "Type": "String", "Value": "cac1-wl1-yto-wlz1", "Version": 1, "LastModifiedDate": "2022-04-26T09:57:44.495000-04:00", "ARN": "arn:aws:ssm:us-east-2::parameter/aws/service/global-infrastructure/wavelength-zones/cac1-wl1-yto-wlz1", "DataType": "text" } ] }
查看本地区域下的所有参数和值
您可以使用以下命令查看本地区域的所有参数数据。
此命令会返回如下信息。此示例输出已由于空间问题截断。
{ "Parameters": [ { "Name": "/aws/service/global-infrastructure/local-zones/use1-bos1-az1/geolocationCountry", "Type": "String", "Value": "US", "Version": 3, "LastModifiedDate": "2020-12-15T14:16:17.641000-08:00", "ARN": "arn:aws:ssm:us-east-2::parameter/aws/service/global-infrastructure/local-zones/use1-bos1-az1/geolocationCountry", "DataType": "text" }, { "Name": "/aws/service/global-infrastructure/local-zones/use1-bos1-az1/geolocationRegion", "Type": "String", "Value": "US-MA", "Version": 3, "LastModifiedDate": "2020-12-15T14:16:17.794000-08:00", "ARN": "arn:aws:ssm:us-east-2::parameter/aws/service/global-infrastructure/local-zones/use1-bos1-az1/geolocationRegion", "DataType": "text" }, { "Name": "/aws/service/global-infrastructure/local-zones/use1-bos1-az1/location", "Type": "String", "Value": "US East (Boston)", "Version": 1, "LastModifiedDate": "2021-01-11T10:53:24.634000-08:00", "ARN": "arn:aws:ssm:us-east-2::parameter/aws/service/global-infrastructure/local-zones/use1-bos1-az1/location", "DataType": "text" }, { "Name": "/aws/service/global-infrastructure/local-zones/use1-bos1-az1/network-border-group", "Type": "String", "Value": "us-east-1-bos-1", "Version": 3, "LastModifiedDate": "2020-12-15T14:16:20.641000-08:00", "ARN": "arn:aws:ssm:us-east-2::parameter/aws/service/global-infrastructure/local-zones/use1-bos1-az1/network-border-group", "DataType": "text" }, { "Name": "/aws/service/global-infrastructure/local-zones/use1-bos1-az1/parent-availability-zone", "Type": "String", "Value": "use1-az4", "Version": 3, "LastModifiedDate": "2020-12-15T14:16:20.834000-08:00", "ARN": "arn:aws:ssm:us-east-2::parameter/aws/service/global-infrastructure/local-zones/use1-bos1-az1/parent-availability-zone", "DataType": "text" }, { "Name": "/aws/service/global-infrastructure/local-zones/use1-bos1-az1/parent-region", "Type": "String", "Value": "us-east-1", "Version": 3, "LastModifiedDate": "2020-12-15T14:16:20.721000-08:00", "ARN": "arn:aws:ssm:us-east-2::parameter/aws/service/global-infrastructure/local-zones/use1-bos1-az1/parent-region", "DataType": "text" }, { "Name": "/aws/service/global-infrastructure/local-zones/use1-bos1-az1/zone-group", "Type": "String", "Value": "us-east-1-bos-1", "Version": 3, "LastModifiedDate": "2020-12-15T14:16:17.983000-08:00", "ARN": "arn:aws:ssm:us-east-2::parameter/aws/service/global-infrastructure/local-zones/use1-bos1-az1/zone-group", "DataType": "text" } ] }
仅查看本地区域参数名称
您可以使用以下命令仅查看本地区域参数的名称。
此命令会返回如下信息。
[ "/aws/service/global-infrastructure/local-zones/use1-bos1-az1/geolocationCountry", "/aws/service/global-infrastructure/local-zones/use1-bos1-az1/geolocationRegion", "/aws/service/global-infrastructure/local-zones/use1-bos1-az1/location", "/aws/service/global-infrastructure/local-zones/use1-bos1-az1/network-border-group", "/aws/service/global-infrastructure/local-zones/use1-bos1-az1/parent-availability-zone", "/aws/service/global-infrastructure/local-zones/use1-bos1-az1/parent-region", "/aws/service/global-infrastructure/local-zones/use1-bos1-az1/zone-group" ]