github.com/atsaki/terraform@v0.4.3-0.20150919165407-25bba5967654/website/source/docs/providers/aws/r/eip.html.markdown (about)

     1  ---
     2  layout: "aws"
     3  page_title: "AWS: aws_eip"
     4  sidebar_current: "docs-aws-resource-eip"
     5  description: |-
     6    Provides an Elastic IP resource.
     7  ---
     8  
     9  # aws\_eip
    10  
    11  Provides an Elastic IP resource.
    12  
    13  ## Example Usage
    14  
    15  ```
    16  resource "aws_eip" "lb" {
    17      instance = "${aws_instance.web.id}"
    18      vpc = true
    19  }
    20  ```
    21  
    22  ## Argument Reference
    23  
    24  The following arguments are supported:
    25  
    26  * `vpc` - (Optional) Boolean if the EIP is in a VPC or not.
    27  * `instance` - (Optional) EC2 instance ID.
    28  * `network_interface` - (Optional) Network interface ID to associate with.
    29  
    30  ## Attributes Reference
    31  
    32  The following attributes are exported:
    33  
    34  * `private_ip` - Contains the private IP address (if in VPC).
    35  * `public_ip` - Contains the public IP address.
    36  * `instance` - Contains the ID of the attached instance.
    37  * `network_interface` - Contains the ID of the attached network interface.
    38