Sunday, February 19, 2017

Could not connect to the endpoint URL: "https://ec2.eu-west-1b.amazonaws.com/"

##########################
## Error
##########################



##########################
#  Error Occurred
##########################

Error occured while performing issuing describe-instances command after connecting to ec2 instance via putty

##########################
## Command Executed
##########################

aws ec2 describe-instances --region eu-west-1b

**************************************** Step By Step Analysis ******************************************************

#########################################
# 1) Reason for Failure
#########################################

I'm a newbie to AWS at this time and didn't understand the concept of region and availability zones.

The region i've mentioned here is eu-west-1b. But that is the availability zone. The region name is "eu-west-1"

=====================================================================================================================

##########################
## Solution
##########################

aws ec2 describe-instances --region eu-west-1

=====================================================================================================================
Now the command completed successfully.
=====================================================================================================================


Region & AZ's :

http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html

=====================================================================================================================
 Comments Are Always welcome
=====================================================================================================================



No comments: