鉴于您正在使用AWS Ruby SDK(2.0),如何等待CloudFormation堆栈更新?
答案 0 :(得分:1)
服务员每隔delay
秒max_attempts
将更新的Stack个实例传递到给定的块中。
# @client is your client
stack = Aws::CloudFormation::Stack.new(name, :client => @client)
stack(stage).wait_until({delay: 15, max_attempts: 20}) do |i|
i.stack_status == 'STACK_UPDATE_COMPLETE'
end