aws-cloudformation - 如果已连接,则允许重新关联弹性 IP

标签 aws-cloudformation boto3 boto

Web 界面有一个有用的选项“如果已连接,则允许重新关联弹性 IP”。如何使用云信息来做到这一点? (或博托)?

enter image description here

最佳答案

无需为仅限 ec2-vpc 的帐户指定这一点。

[EC2-Classic, VPC in an EC2-VPC-only account] If the Elastic IP address is already associated with a different instance, it is disassociated from that instance and associated with the specified instance. If you associate an Elastic IP address with an instance that has an existing Elastic IP address, the existing address is disassociated from the instance, but remains allocated to your account.

关于aws-cloudformation - 如果已连接,则允许重新关联弹性 IP,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57738426/

相关文章:

python3 dynamoDB Update_item 不工作

amazon-web-services - AWS SAM - 具有 Lambda 函数集成的 HttpApi 的简单示例

amazon-web-services - 即使已定义,Cloudformation 也不会创建 EC2 实例

amazon-web-services - AWS 云形成 : Nested Stacks - Unresolved dependencies

python - 将 json 写入 s3 存储桶中的文件

python - boto3 使用 AWS Lambda 启动/停止 RDS 实例

python - 如何在使用 PIL 修改文件上传表单后将文件上传到 s3?

python - 将原始电子邮件(带附件)发送给多个收件人

amazon-ec2 - 如何使用 CloudWatch 从 Cloudformation 查看 EC2 实例的详细监控?

python - 无法检索 python/boto 中的已知 key