github.com/bengesoff/terraform@v0.3.1-0.20141018223233-b25a53629922/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  ---
     6  
     7  # aws\_eip
     8  
     9  Provides an Elastic IP resource.
    10  
    11  ## Example Usage
    12  
    13  ```
    14  resource "aws_eip" "lb" {
    15      instance = "${aws_instance.web.id}"
    16      vpc = true
    17  }
    18  ```
    19  
    20  ## Argument Reference
    21  
    22  The following arguments are supported:
    23  
    24  * `vpc` - (Optional) Boolean if the EIP is in a VPC or not.
    25  * `instance` - (Optional) EC2 instance ID.
    26  
    27  ## Attributes Reference
    28  
    29  The following attributes are exported:
    30  
    31  * `private_ip` - Contains the private IP address (if in VPC).
    32  * `public_ip` - Contains the public IP address.
    33  * `instance` - Contains the ID of the attached instance.
    34