【问题标题】:Bad parameter combination with ec2 & test-kitchen与 ec2 & test-kitchen 的参数组合错误
【发布时间】:2015-04-18 19:52:07
【问题描述】:

我正在尝试使用我们 VPC 中的 ec2 插件运行测试厨房并收到以下消息:

Message: InvalidParameterCombination => The parameter groupName cannot be used with the parameter subnet

一旦我将子网 ID 设置为表示它在 VPC 中,我就会收到 groupName 错误。

这是我的 .kitchen.yml 我没有在任何地方设置 groupName 。

driver: name: ec2 aws_access_key_id: <%= ENV["AWS_ACCESS_KEY_ID"] %> aws_ssh_key_id: *** ssh_key: <%= *** %> security_group_ids: ["default-server"] region: eu-west-1 availability_zone: eu-west-1a require_chef_omnibus: true subnet_id: subnet-*** iam_profile_name: ami_id: ami-*** image_id: ami-*** flavour_id: t2.micro assoicate_public_ip: true ebs_delete_on_termination: true

【问题讨论】:

    标签: chef-infra test-kitchen aws-ec2


    【解决方案1】:

    您需要将您的 VPC 安全组指定为 ID 而不是名称。

    security_group_ids: ["sg-xxxxxxx"]
    

    另外,请确保将安全组分配给 VPC。

    【讨论】:

    • 发现我使用的不是大师,而是一年前的宝石。似乎现在已经修复了它。现在我只需要弄清楚为什么它总是即使设置为 false 也会获得公共 IP 地址。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-09-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多