Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

boto.connect_elb doesn't respect region in .boto file #1100

Closed
ember-max opened this Issue Nov 7, 2012 · 7 comments

Comments

Projects
None yet
5 participants

This code:

conn = boto.connect_elb()
all_elbs = conn.get_all_load_balancers(load_balancer_names=[elb_name])

Was yielding no elbs. Printed out connection and it said it was in the us-east region (default). Switched to

conn = boto.ec2.elb.connect_to_region(region)

and my elbs showed up. My region info (us-west-2) is specified in .boto file and works fine for my ec2 connection.

Owner

garnaat commented Nov 7, 2012

Since ELB is a separate service from EC2, you need to specify it's defaults separately in the boto config file. Using:
elb_region_name and elb_region_endpoint should work.

solarce commented Nov 7, 2012

Is there a list of these settings in the docs somewhere? I looked briefly
but only found where to set the API access stuff

On Wed, Nov 7, 2012 at 6:07 AM, Mitch Garnaat notifications@github.comwrote:

Since ELB is a separate service from EC2, you need to specify it's
defaults separately in the boto config file. Using:
elb_region_name and elb_region_endpoint should work.


Reply to this email directly or view it on GitHubhttps://github.com/boto/boto/issues/1100#issuecomment-10149172.

Owner

garnaat commented Nov 7, 2012

No, there isn't. But there should be. Let's repurpose this issue to track the changes required in the docs to address this. Thanks!

elb_region_name and elb_region_endpoint are working, and adding to docs would be great - thanks!

Messing with DynamoDB now, realized it was also defaulting to us-east - tried both 'ddb_region_XXX' and 'dynamodb_region_XXX' in the .boto file and neither seemed to do the trick. Does DynamoDB support the .boto file settings?

Owner

kopertop commented Nov 7, 2012

Would it not be prudent to make a region configuration option that works
across all APIs?

On Wed, Nov 7, 2012 at 12:43 PM, ember-max notifications@github.com wrote:

Messing with DynamoDB now, realized it was also defaulting to us-east -
tried both 'ddb_region_XXX' and 'dyanmodb_region_XXX' in the .boto file and
neither seemed to do the trick. Does DynamoDB support the .boto file
settings?


Reply to this email directly or view it on GitHubhttps://github.com/boto/boto/issues/1100#issuecomment-10157551.

Chris Moyer

@jamesls jamesls added a commit that referenced this issue Mar 14, 2013

@jamesls jamesls Merge pull request #1376 from pasc/1100_boto_config_docs
Add documentation for known configuration options for boto (re #1100)
5406f4b
Owner

jamesls commented Mar 14, 2013

Closed via #1376

@jamesls jamesls closed this Mar 14, 2013

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