joaquincasares / cassandralauncher

Allows for the DataStax AMI to run from the command line while removing common user errors. End-to-end time to a cluster of any size is ~5 minutes. 22,000+ PyPI downloads.
46 stars 13 forks source link

No default VPC for this user #17

Open accounts4vikas opened 9 years ago

accounts4vikas commented 9 years ago

My company EC2 account does not have a default VPC and look like these script expect a default VPC to be present as I am getting "No default VPC for this user" error while running the script.

Is there any version in progress to allow specifying the VPC in the configuration?

Error Message -


Starting an EC2 cluster of type m1.large with image ami-05caca6c... Ensuring vsangwan-keypair20150203 pem key exists on AWS... Ensuring vsangwan-keypair20150203 pem key exists on filesystem... Ensuring vsangwan-keypair20150203 pem key's permissions are acceptable... Traceback (most recent call last): File "/Users/vsangwan/anaconda/bin/cassandralauncher", line 4, in cassandralauncher.CassandraLauncher() File "/Users/vsangwan/anaconda/lib/python2.7/site-packages/cassandralauncher/init.py", line 6, in init cassandralauncher.run() File "/Users/vsangwan/anaconda/lib/python2.7/site-packages/cassandralauncher/cassandralauncher.py", line 751, in run main() File "/Users/vsangwan/anaconda/lib/python2.7/site-packages/cassandralauncher/cassandralauncher.py", line 675, in main check_cascading_options('security_public_inbound_source', optional=True)) File "/Users/vsangwan/anaconda/lib/python2.7/site-packages/cassandralauncher/ec2.py", line 150, in create_cluster ds_security_group = conn.create_security_group('DataStax', 'Security group for running DataStax products') File "/Users/vsangwan/anaconda/lib/python2.7/site-packages/boto/ec2/connection.py", line 3003, in create_security_group SecurityGroup, verb='POST') File "/Users/vsangwan/anaconda/lib/python2.7/site-packages/boto/connection.py", line 1207, 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"?>

VPCIdNotSpecifiedNo default VPC for this userc725df67-ec48-48e5-9ff5-41f8e83c71f4

vsangwan-mbp15:~ vsangwan$ vi .clusterlauncher.conf

joaquincasares commented 9 years ago

No sorry, there are no planned features going into this project.

Feel free to create a new option to specify your VPC Id, or feel free to hardcode it in ec2.py (this project uses boto which is heavily documented). If you do the former, I'd be happy to accept a pull request for the rest of the community.

Thanks!