我正尝试使用boto ec2连接对象创建安全组。安全组已成功创建,但它在ec2中创建,但我希望在VPC中创建它。下面是代码片段使用boto ec2连接对象在VPC中创建安全组
import boto
import boto.ec2
from sys import argv
connection = boto.ec2.connect_to_region('us-east-1')
create = connection.create_security_group('test', 'Testing')
你应该罚款与'boto.ec2'直接创建:'连接= boto.ec2.connect_to_region( '美东-1'); create = connection.create_security_group('testing1','testing1',vpc_id ='vpc-1234abc56')',不需要模块'boto.vpc'。 – BMW 2015-07-03 07:43:53