How can I get aws region names using regions

Hi, I want the amazon (aws) web service area names using regions to mean

   region is "us-east-1" region name is "US East (N. Virginia)"
   region is "us-west-2" region name is "US West (Oregon)"

using the us-east-1 region, I want to dynamically display the region name "US East (N. Virginia)".

Thanks Sanjay

+4
source share
3 answers

There is no AWS API method to call this information.

Some SDKs, such as the AWS SDK for .NET, have this information baked in the SDK. For example, in C #:

var regions = Amazon.RegionEndpoint.EnumerableAllRegions;
foreach (var r in regions)
{
  Console.WriteLine("{0} -> {1}", r.SystemName, r.DisplayName);
}

Looking through documents for AWS SDK for Java , I do not find an equivalent. If he were there, I would think that this should be in the classroom com.amazonaws.regions.Region.

, .

+5

, LightSail - , .

aws lightsail get-regions
{
  "regions": [
    {
        "continentCode": "NA",
        "description": "This region is recommended to serve users in the eastern United States and eastern Canada",
        "displayName": "Virginia",
        "name": "us-east-1",
        "availabilityZones": []
    },
....

OP, , , , - Google.

+1

CLI "aws ec2 describe-regions - " Name = endpoint, Values ​​= us "". JQ -query .

- http://docs.aws.amazon.com/cli/latest/reference/ec2/describe-regions.html

0

All Articles