Region name vs Region endpoint #1444

Open
lra opened this Issue Apr 15, 2013 · 0 comments

Projects

None yet

1 participant

@lra
lra commented Apr 15, 2013

I have trouble understanding the difference between region name and region endpoint.

If I use only one, it looks like I'm getting half-baked regions.

I have this ~/.boto

[Boto]
ec2_region_name = us-west-1

If I connect without specifying a region, I get a weird state:

import boto
conn = boto.connect_ec2()
print "Name: {}".format(conn.region.name)
print "Endpoint: {}".format(conn.region.endpoint)

Gives

Name: us-west-1
Endpoint: ec2.us-east-1.amazonaws.com

The name is built using my config, but the endpoint is the default one.

Shouldn't the endpoint be built using the name if missing, or vice-versa if I specify the endpoint but not a name ?

Or is it supposed to be like this ?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment