minecloud-ami
minecloud-ami copied to clipboard
`EC2ResponseError: 400 Bad Request` from build-ami.py
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>