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