question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invalid availability zone: [us-east-1d]

See original GitHub issue

running: bees up -s 4 -g public -k mykey but I get:

Connecting to the hive.
Attempting to call up 4 bees.
Traceback (most recent call last):
  File "/usr/local/bin/bees", line 5, in <module>
    main.main()
  File "/usr/local/lib/python2.7/dist-packages/beeswithmachineguns/main.py", line 127, in main
    parse_options()
  File "/usr/local/lib/python2.7/dist-packages/beeswithmachineguns/main.py", line 111, in parse_options
    bees.up(options.servers, options.group, options.zone, options.instance, options.login, options.key)
  File "/usr/local/lib/python2.7/dist-packages/beeswithmachineguns/bees.py", line 104, in up
    placement=zone)
  File "/usr/local/lib/python2.7/dist-packages/boto/ec2/connection.py", line 618, in run_instances
    return self.get_object('RunInstances', params, Reservation, verb='POST')
  File "/usr/local/lib/python2.7/dist-packages/boto/connection.py", line 699, in get_object
    raise self.ResponseError(response.status, response.reason, body)
boto.exception.EC2ResponseError: EC2ResponseError: 400 Bad Request
<?xml version="1.0" encoding="UTF-8"?>
<Response><Errors><Error><Code>InvalidParameterValue</Code><Message>Invalid availability zone: [us-east-1d]</Message></Error></Errors><RequestID>7d01a404-48c7-4147-9774-f93c993e6b7a</RequestID></Response>

Issue Analytics

  • State:open
  • Created 9 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
ankloscommented, Nov 18, 2014

@analytically @germs12 I went into the same issue, I was using the zone ap-southeast-2a

I solved it by doing:

First add region config into .boto

[Credentials]
xxx
xxx
[Boto]
ec2_region_name = ap-southeast-2
ec2_region_endpoint = ec2.ap-southeast-2.amazonaws.com

Then in the command you include the zone from the region you configured. For me, it is -z ap-southeast-2a

0reactions
ahmaddannicommented, Oct 7, 2016

Done, thanks @mfrederickson

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invalid Availability Zone when creating Instance - Stack Overflow
The AWS SDK for Java uses the US East (Northern Virginia) Region as the default region if you do not specify a region...
Read more >
Troubleshoot EC2 instance Availability Zone errors at launch
I received the error message "Your requested instance type is not supported in your requested Availability Zone" when launching an Amazon ...
Read more >
AWS instructions suggest invalid availability zone #442 - GitHub
An Availability Zone is represented by a region code followed by a letter identifier; for example, us-east-1a. To ensure that resources are ...
Read more >
Unable to launch multiple EC2 instances in different ...
example.2: Error launching source instance: InvalidParameterValue: Invalid availability zone: [ us-east-1d}] status code: 400, request id: 59244720- ...
Read more >
Invalid Availability zone error when trying to autoscaling
AmazonServiceException: Invalid availability zone: [eu-west-1b] (Service: AmazonEC2; ... AmazonEC2Client#init it defaults to ec2.us-east-1.amazonaws.com.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found