Hi,
by modifying the API_VERSION to '2013-02-01' on the ec2 driver (libcloud/compute/drivers/ec2.py) we have deployed nodes on EC2 VPC and non-VPC accounts, by providing the security group name #create security group conn.ex_create_security_group(name=name, description=description) #grant permissions conn.ex_authorize_security_group_permissive(name=name) then deploy_node node = conn.deploy_node(name=machine_name, image=image, size=size, deploy=deploy_script, location=location, ssh_key=tmp_key_path, ssh_alternate_usernames=['ec2-user', 'ubuntu'], max_tries=1, ex_keyname=key_id, ex_securitygroup=security_group_name) hope this helps Cheers Στις 16.09.2013 12:35, Łukasz Budnik έγραψε: > Hi guys, > > I saw a thread about Amazon VPC. Markos Gogoulos was able to spin up new > instances but in a slightly different way. > > I'm trying to spin up a new instance with an existing security group. > > when I execute: > > ec2-describe-group --region=us-east-1 SG_NAME > > I get an error that VPC security groups can be referenced only by the ID. > When I change it to sg-ID then the command is successful and prints out all > the rules. > > But when creating node using libcloud no matter if I pass the SG name or > the id. I keep getting the same error: > > Exception: InvalidGroup.NotFound: The security group XXXX does not exist > > Does anybody successfully created a node in EC2 VPC with an existing > security group? > > thanks, > Łukasz