Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services 如果aws#U eip#U地址没有';你不能和厨师在一起吗?_Amazon Web Services_Chef Infra - Fatal编程技术网

Amazon web services 如果aws#U eip#U地址没有';你不能和厨师在一起吗?

Amazon web services 如果aws#U eip#U地址没有';你不能和厨师在一起吗?,amazon-web-services,chef-infra,Amazon Web Services,Chef Infra,我的厨师食谱中定义了aws机器: machine "my-server" do action :converge end aws_eip_address "server_ip_1" do machine "my-server" associate_to_vpc true end 当此配方第一次运行时,它会创建机器,并正确关联ip。但是,只要此配方再次运行,就会抛出以下错误: aws_eip_地址[服务器ip_1](xx.xx.xx.xx)操作创建 ================

我的厨师食谱中定义了aws机器:

machine "my-server" do
  action :converge
end

aws_eip_address "server_ip_1" do
  machine "my-server"
  associate_to_vpc true
end
当此配方第一次运行时,它会创建机器,并正确关联ip。但是,只要此配方再次运行,就会抛出以下错误:

aws_eip_地址[服务器ip_1](xx.xx.xx.xx)操作创建

======================================================================================================

对资源执行操作
create
时出错 'aws_eip_地址[服务器ip_1](xx.xx.xx.xx)'

=====================================================================

AWS::EC2::错误::资源::已关联


资源eipalloc xxx已与关联id eipassoc xxx关联

我如何让这个食谱能够一遍又一遍地运行?我是否可以测试eip是否已经关联?我可以试一下资源声明吗

这非常令人沮丧,因为文档非常糟糕。到目前为止,我找到的文档包括:


在Slack上回答,相同的资源名称在另一个配方中重复,导致聚合检查错误失败。

我对chef资源调配问题的常见免责声明:请注意,我们不建议新用户使用chef资源调配,因为它不再处于重要开发阶段。有关更多信息,请参阅。