Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EC2ResponseError: 400 Bad Request from build-ami.py #19

Open
jonwolski opened this issue Aug 28, 2016 · 0 comments
Open

EC2ResponseError: 400 Bad Request from build-ami.py #19

jonwolski opened this issue Aug 28, 2016 · 0 comments

Comments

@jonwolski
Copy link

Following the instructions in the README, when I get to the point where I run build-ami.py, I get 400 Bad Request from AWS.

It is possible this is related to IAM. I did not set up a new account for this, because I already had one. I tried to set up a new user, but I am unsure what the policy should be. I gave my minecloud user (by way of my minecraft group) the AmazonEC2FullAccess policy. Is that sufficient?

(venv) $ ./build-ami.py 
Launching instance of ami-fb68f8cb...
Traceback (most recent call last):
  File "./build-ami.py", line 147, in <module>
    main()
  File "./build-ami.py", line 135, in main
    instance = launch_instance()
  File "./build-ami.py", line 33, in launch_instance
    user_data=env.ec2_userdata)
  File "/Users/jon/development/minecloud/minecloud/venv/lib/python2.7/site-packages/boto/ec2/connection.py", line 722, in run_instances
    verb='POST')
  File "/Users/jon/development/minecloud/minecloud/venv/lib/python2.7/site-packages/boto/connection.py", line 1062, 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>Value () for parameter groupId is invalid. The value cannot be empty</Message></Error></Errors><RequestID>78c86641-9fa9-4a9e-b922-3e71a5f91759</RequestID></Response>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant