Amazon web services 如果aws#U eip#U地址没有';你不能和厨师在一起吗?
我的厨师食谱中定义了aws机器: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)操作创建 ================
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是否已经关联?我可以试一下资源声明吗 这非常令人沮丧,因为文档非常糟糕。到目前为止,我找到的文档包括: