github.com/hobbeswalsh/terraform@v0.3.7-0.20150619183303-ad17cf55a0fa/website/source/docs/providers/aws/r/network_interface.markdown (about) 1 --- 2 layout: "aws" 3 page_title: "AWS: aws_network_interface" 4 sidebar_current: "docs-aws-resource-network-interface" 5 description: |- 6 Provides an Elastic network interface (ENI) resource. 7 --- 8 9 # aws\_network\_interface 10 11 Provides an Elastic network interface (ENI) resource. 12 13 ## Example Usage 14 15 ``` 16 resource "aws_network_interface" "test" { 17 subnet_id = "${aws_subnet.public_a.id}" 18 private_ips = ["10.0.0.50"] 19 security_groups = ["${aws_security_group.web.name}"] 20 attachment { 21 instance = "${aws_instance.test.id}" 22 device_index = 1 23 } 24 } 25 ``` 26 27 ## Argument Reference 28 29 The following arguments are supported: 30 31 * `subnet_id` - (Required) Subnet ID to create the ENI in. 32 * `private_ips` - (Optional) List of private IPs to assign to the ENI. 33 * `security_groups` - (Optional) List of security group IDs to assign to the ENI. 34 * `attachment` - (Required) Block to define the attachment of the ENI. Documented below. 35 * `tags` - (Optional) A mapping of tags to assign to the resource. 36 37 The `attachment` block supports: 38 39 * `instance` - (Required) ID of the instance to attach to. 40 * `device_index` - (Required) Integer to define the devices index. 41 42 ## Attributes Reference 43 44 The following attributes are exported: 45 46 * `subnet_id` - Subnet ID the ENI is in. 47 * `private_ips` - List of private IPs assigned to the ENI. 48 * `security_groups` - List of security groups attached to the ENI. 49 * `attachment` - Block defining the attachment of the ENI. 50 * `tags` - Tags assigned to the ENI. 51