We can find our Regions and Availability Zones in AWS by two way and also we can check the current health status of Regions and Availability Zones means working fine or not.
1. By using AWS console:-
a) Open the EC2 Dashboard as shown in below pic then under Service Health you are able to find your Regions and Availability Zones, Green click before Regions and Availability Zones name indicate that both Regions and Availability Zones are working fine.
2. By using AWS command line:-
I am going to take one AWS EC2 server in which AWS CLI is already install by me...you can take any AWS or on premises system in which you need to install AWS CLI to run the AWS command.
Run the below command to list down all the Regions for our account:-
[root@ip-172-31-36-171 ~]# aws ec2 describe-regions
{
"Regions": [
{
"Endpoint": "ec2.eu-north-1.amazonaws.com",
"RegionName": "eu-north-1"
},
{
"Endpoint": "ec2.ap-south-1.amazonaws.com",
"RegionName": "ap-south-1"
},
{
"Endpoint": "ec2.eu-west-3.amazonaws.com",
"RegionName": "eu-west-3"
},
{
"Endpoint": "ec2.eu-west-2.amazonaws.com",
"RegionName": "eu-west-2"
},
{
"Endpoint": "ec2.eu-west-1.amazonaws.com",
"RegionName": "eu-west-1"
},
{
"Endpoint": "ec2.ap-northeast-2.amazonaws.com",
"RegionName": "ap-northeast-2"
},
{
"Endpoint": "ec2.ap-northeast-1.amazonaws.com",
"RegionName": "ap-northeast-1"
},
{
"Endpoint": "ec2.sa-east-1.amazonaws.com",
"RegionName": "sa-east-1"
},
{
"Endpoint": "ec2.ca-central-1.amazonaws.com",
"RegionName": "ca-central-1"
},
{
"Endpoint": "ec2.ap-southeast-1.amazonaws.com",
"RegionName": "ap-southeast-1"
},
{
"Endpoint": "ec2.ap-southeast-2.amazonaws.com",
"RegionName": "ap-southeast-2"
},
{
"Endpoint": "ec2.eu-central-1.amazonaws.com",
"RegionName": "eu-central-1"
},
{
"Endpoint": "ec2.us-east-1.amazonaws.com",
"RegionName": "us-east-1"
},
{
"Endpoint": "ec2.us-east-2.amazonaws.com",
"RegionName": "us-east-2"
},
{
"Endpoint": "ec2.us-west-1.amazonaws.com",
"RegionName": "us-west-1"
},
{
"Endpoint": "ec2.us-west-2.amazonaws.com",
"RegionName": "us-west-2"
}
]
}
1. By using AWS console:-
a) Open the EC2 Dashboard as shown in below pic then under Service Health you are able to find your Regions and Availability Zones, Green click before Regions and Availability Zones name indicate that both Regions and Availability Zones are working fine.
2. By using AWS command line:-
I am going to take one AWS EC2 server in which AWS CLI is already install by me...you can take any AWS or on premises system in which you need to install AWS CLI to run the AWS command.
Run the below command to list down all the Regions for our account:-
[root@ip-172-31-36-171 ~]# aws ec2 describe-regions
{
"Regions": [
{
"Endpoint": "ec2.eu-north-1.amazonaws.com",
"RegionName": "eu-north-1"
},
{
"Endpoint": "ec2.ap-south-1.amazonaws.com",
"RegionName": "ap-south-1"
},
{
"Endpoint": "ec2.eu-west-3.amazonaws.com",
"RegionName": "eu-west-3"
},
{
"Endpoint": "ec2.eu-west-2.amazonaws.com",
"RegionName": "eu-west-2"
},
{
"Endpoint": "ec2.eu-west-1.amazonaws.com",
"RegionName": "eu-west-1"
},
{
"Endpoint": "ec2.ap-northeast-2.amazonaws.com",
"RegionName": "ap-northeast-2"
},
{
"Endpoint": "ec2.ap-northeast-1.amazonaws.com",
"RegionName": "ap-northeast-1"
},
{
"Endpoint": "ec2.sa-east-1.amazonaws.com",
"RegionName": "sa-east-1"
},
{
"Endpoint": "ec2.ca-central-1.amazonaws.com",
"RegionName": "ca-central-1"
},
{
"Endpoint": "ec2.ap-southeast-1.amazonaws.com",
"RegionName": "ap-southeast-1"
},
{
"Endpoint": "ec2.ap-southeast-2.amazonaws.com",
"RegionName": "ap-southeast-2"
},
{
"Endpoint": "ec2.eu-central-1.amazonaws.com",
"RegionName": "eu-central-1"
},
{
"Endpoint": "ec2.us-east-1.amazonaws.com",
"RegionName": "us-east-1"
},
{
"Endpoint": "ec2.us-east-2.amazonaws.com",
"RegionName": "us-east-2"
},
{
"Endpoint": "ec2.us-west-1.amazonaws.com",
"RegionName": "us-west-1"
},
{
"Endpoint": "ec2.us-west-2.amazonaws.com",
"RegionName": "us-west-2"
}
]
}
Run the below command to list down all the Availability Zones for a particular Regions:-
[root@ip-172-31-36-171 ~]# aws ec2 describe-availability-zones --region ap-south-1
{
"AvailabilityZones": [
{
"State": "available",
"ZoneName": "ap-south-1a",
"Messages": [],
"ZoneId": "aps1-az1",
"RegionName": "ap-south-1"
},
{
"State": "available",
"ZoneName": "ap-south-1b",
"Messages": [],
"ZoneId": "aps1-az3",
"RegionName": "ap-south-1"
}
]
}
No comments:
Post a Comment