我无法弄清楚为什么我在测试厨房中使用自定义AMI时出现此错误:
"Failed to complete #create action: [undefined method `username' for nil:NilClass] on image5.0_new"
这是.kitchen.yml中的平台节:
platforms:
- name: image5.0_new
driver:
image_id: ami-8c5236ea
transport:
username: root
ssh_key: /opscode.pem
我的驱动程序行正确,但我不知道为什么它没有看到正确的用户名...任何想法?