当我使用下面的配置运行kitchen create时出现错误:
"[getaddrinfo: Temporary failure in name resolution] on default-centos-7".
这个系统可以解决dns没问题,所以我不确定问题是什么......
---
driver:
name: ec2
aws_ssh_key_id: chef
security_group_ids: ["sg-5d3276a0"]
region: eu-east-1
require_chef_omnibus: true
instance_type: t1.micro
associate_public_ip: true
provisioner:
name: chef_zero
cookbook_path: cookbooks
roles_path: roles
environments_path: environments
data_bags_path: data_bags
platforms:
- name: centos-7
image_id: ami-96a818fe
transport:
ssh_key: /home/user/aws_key.pem
username: root
suites:
- name: default
run_list:
- recipe[website::default]
attributes:
将平台更改为ubuntu ami会产生相同的错误。有什么想法吗?
答案 0 :(得分:1)
没有eu-east-1
区域。也许你的意思是eu-west-1
?