📜  创建网络接口 terraform aws - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:45.295000             🧑  作者: Mango

代码示例1
resource "aws_network_interface" "test" {
  subnet_id       = aws_subnet.public_a.id
  private_ips     = ["10.0.0.50"]
  security_groups = [aws_security_group.web.id]

  attachment {
    instance     = aws_instance.test.id
    device_index = 1
  }
}