2016-11-18 59 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