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

あなたはそれなしprofiles.conf

でプロファイルを

subnetid: 

を使用して、AWSのサブネットを指定したいと思うあなたに

+0

http://stackoverflow.com/questions/22365470/launching-instance-vpc-security-groups-may-not- vpc-launch-a-non-vpc-launchが役に立つかもしれない – dahrens

答えて

0

ありがとうございましたどの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

関連する問題