我正在尝试使用 Terraform 将我的弹性 IP 地址与新创建的网络平衡器相关联。我在aws_lb文档中没有看到像 AWS 控制台中那样添加弹性 IP 的选项。困难在于您必须在创建 NLB 时关联弹性 IP。
aws_lb
编辑:他们现在在他们的文档中做了一个明确的例子!
nlb amazon-web-services elastic-ip terraform
amazon-web-services ×1
elastic-ip ×1
nlb ×1
terraform ×1