2016-11-18 56 views
0

我不知道为什么当我尝试在我的salt-master ec2实例上运行sudo salt-cloud -p ec2_east_micro_dev saltcloud_micro_test时,我仍然收到相同的错误。我所有的设置看起来都很正确,但它一直告诉我一个invalidParameterCombination错误。使用AWS的盐云错误

{'Errors': {'Error': {'Message': 'VPC security groups may not be used for a non-VPC launch', 'Code': 'InvalidParameterCombination'}} 

ec2-us-east-1-private: 
    minion: 
    master: hostname.of-salt-master.com 
    id: x 
    key: 'x' 
    private_key: /etc/salt/master-key.pem 
    keyname: salt-minion1 
    ssh_interface: private_ips 
    securitygroup: main-securitygroup 
    location: us-east-1 
    availability_zone: us-east-1b 
    driver: ec2 
    del_root_vol_on_destroy: True 
    del_all_vols_on_destroy: True 
    rename_on_destroy: True 

谢谢

+0

http://stackoverflow.com/questions/22365470/launching-instance-vpc-security-groups-may-not-用于非vpc-launch可能会有用 – dahrens

回答

0

你要指定一个AWS子网,使用

subnetid: 

在profiles.conf

没有它的轮廓不知道VPC创造了什么立场,并且发射将失败。

0

当你实例化VPC盒子时,你应该从你的提供者配置文件中删除“securitygroup:”,然后你将在配置文件配置文件中指定“SubnetId:”。工作简档的配置文件的示例:

db_us_east_1_vpc_pfofile: 
    provider: ec2-us-east-1-private 
    image: ami-ad2a91ab 
    size: m4.large 
    ssh_username: ubuntu 
    network_interfaces: 
    - DeviceIndex: 0 
     PrivateIpAddresses: 
     - Primary: True 
     #auto assign public ip (not EIP) 
     AssociatePublicIpAddress: True 
     SubnetId: subnet-ba7e3133 
     SecurityGroupId: sg-ba655211 
    del_root_vol_on_destroy: True 
    del_all_vol_on_destroy: True 
    tag: {'Environment': 'production', 'Role': 'database', 'Name': 'my_db_box'} 
    sync_after_install: grains 

有人对saltstack讨论github issue 14963