FEATURES OPEN SOURCE ABOUT DOCS LOGIN REGISTER

aws_network_interface

Provides an Elastic network interface (ENI) resource.

Example Usage

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
	}
}

Argument Reference

The following arguments are supported:

The attachment block supports:

Attributes Reference

The following attributes are exported:

Import

Network Interfaces can be imported using the id, e.g.

$ terraform import aws_network_interface.test eni-e5aa89a3

See the source of this document at Terraform.io