【发布时间】:2021-10-05 09:37:41
【问题描述】:
我想选择我的实例的私有 ip,但我不断收到此错误:
Error: Error creating ENI: InvalidParameterValue: Address is in subnet's reserved address range status code: 400, request id: xxxxxxxxxx
with aws_network_interface.my-instance-nic
on main.tf line 222, in resource "aws_network_interface" "my-instance-nic":
resource "aws_network_interface" "my-instance-nic" {
以上是当我尝试使用我的私有 IP 创建一个 NIC 时。当我尝试直接使用 private_ip 的 aws_instance 资源时,也会发生同样的情况。
【问题讨论】:
标签: amazon-web-services amazon-ec2 terraform terraform-provider-aws