github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/aws/r/network_interface_attachment.html.markdown (about)

     1  ---
     2  layout: "aws"
     3  page_title: "AWS: aws_network_interface_attachment"
     4  sidebar_current: "docs-aws-resource-network-interface-attachment"
     5  description: |-
     6    Attach an Elastic network interface (ENI) resource with EC2 instance.
     7  ---
     8  
     9  # aws\_network\_interface\_attachment
    10  
    11  Attach an Elastic network interface (ENI) resource with EC2 instance.
    12  
    13  ## Example Usage
    14  
    15  ```
    16  resource "aws_network_interface_attachment" "test" {
    17      instance_id = "${aws_instance.test.id}"
    18  	network_interface_id = "${aws_network_interface.test.id}"
    19  	device_index = 0
    20  }
    21  ```
    22  
    23  ## Argument Reference
    24  
    25  The following arguments are supported:
    26  
    27  * `instance_id` - (Required) Instance ID to attach.
    28  * `network_interface_id` - (Required) ENI ID to attach.
    29  * `device_index` - (Required) Network interface index (int).
    30  
    31  ## Attributes Reference
    32  
    33  The following attributes are exported:
    34  
    35  * `instance_id` - Instance ID.
    36  * `network_interface_id` - Network interface ID.
    37  * `attachment_id` - The ENI Attachment ID.
    38  * `status` - The status of the Network Interface Attachment.