Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想让我在 AWS Opsworks 中创建的实例使用预配置的弹性网络接口,以便在我配置所有服务时使用一些可预测的内部 IP 地址。我还没有在 UI 中看到这样做的方法,有没有人想出一种巧妙的方法来通过配方或自定义 JSON 来做到这一点?
您可以通过 opsworks api 将弹性 ips 与 opsworks 实例相关联。博托;这是一个用于 aws api 的 python 库,它将允许您完全按照您的要求进行操作。
具体方法是:
associate_elastic_ip(elastic_ip, instance_id=None)
博托文档