【发布时间】:2017-12-15 03:57:22
【问题描述】:
假设我有一个 AWS EIP 分配为:eipalloc-94eb5af1 假设我有一个 AWS 网络接口:eni-e3d20a9a、eni-e3d20a9a
现在让我们假设我有两台 EC2 服务器。网络接口在这两台服务器上。
现在...假设我想设置监控。 Ping 监控可能。如果 eni-e3d20a9a 变得不可见,我希望将 EIP 转移到 eni-e3d20a9a。
这可以通过以下方式轻松完成:
aws ec2 associate-address --allocation-id eipalloc-03d3b666 \
--allow-reassociation --network-interface-id eni-98e03bd3
此外,在每台服务器上设置一个基本的 bash 脚本以相互监控非常简单。
但是,我需要有关在 AWS 上有效执行此操作的建议。不使用脚本也许使用 Lambda 或 Cloudwatch?
完成 EIP 迁移的最佳方式是什么?
【问题讨论】:
标签: amazon-web-services floating-ip