github.com/jmbataller/terraform@v0.6.8-0.20151125192640-b7a12e3a580c/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.id}"]
    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` - (Optional) Block to define the attachment of the ENI. Documented below.
    35  * `source_dest_check` - (Optional) Whether to enable source destination checking for the ENI. Default true.
    36  * `tags` - (Optional) A mapping of tags to assign to the resource.
    37  
    38  The `attachment` block supports:
    39  
    40  * `instance` - (Required) ID of the instance to attach to.
    41  * `device_index` - (Required) Integer to define the devices index.
    42  
    43  ## Attributes Reference
    44  
    45  The following attributes are exported:
    46  
    47  * `subnet_id` - Subnet ID the ENI is in.
    48  * `private_ips` - List of private IPs assigned to the ENI.
    49  * `security_groups` - List of security groups attached to the ENI.
    50  * `attachment` - Block defining the attachment of the ENI.
    51  * `source_dest_check` - Whether source destination checking is enabled
    52  * `tags` - Tags assigned to the ENI.
    53