我正在尝试使用AWS ec2作为我的驱动程序在厨师中创建一个厨房。 在这样做时,我遇到了一些奇怪的事情。他们是:
当我输入securityRealm
命令时:
kitchen list
我说最后一个动作没有创建。
所以,然后我尝试通过:Instance Driver Provisioner Verifier Transport Last Action
apache-centos-72 Ec2 ChefSolo Busser Ssh <Not Created>
创建它。
在这里,我遇到了错误kitchen create apache-centos-72
,但在我的create failed : unexpected token 0
控制台中,创建了AWS
个实例。
为什么要创建?
我也无法执行收敛命令。请告诉我哪里出错了
.kitchen.yml 档案
驱动器:
EC2
供应者:
name: ec2
aws_ssh_key_id: xyz
security_group_ids: ["sg-876932fc"]
region: us-east-1
availability-zone: us-east-1c
iam_instance_profile_name: SaveMe
shared_credentials_profile: default
require_chef_omnibus: true
subnet_id: subnet-5fba1d29
instance_type: t2.micro
transport.ssh_timeout: 10
transport.ssh_retries: 5
transport.ebs_volume_size: 8
transport.ebs_delete_on_termination: 'true'
transport.device_name: '/dev/sda'
运输:
name: chef_solo
environments_path: environments
roles_path: roles
平台:
ssh_key: /root/.ec2/xyz.pem
套件:
- name: centos-7.2
driver:
image_id: ami-2051294a
transport.username: rhel
attributes:
以上, xyz 是我的密钥对
SaveMe 是我的 IAM用户名
apache 是食谱名称
我已将凭据保存在工作站的某个位置。
结果如下: kitchen create apache-centos-72 -l debug :
Kitchen已启动并请求实例。
- name: apache
run_list:
-recipe[apache::default]
attributes: