github.com/chalford/terraform@v0.3.7-0.20150113080010-a78c69a8c81f/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  
    29  ## Attributes Reference
    30  
    31  The following attributes are exported:
    32  
    33  * `private_ip` - Contains the private IP address (if in VPC).
    34  * `public_ip` - Contains the public IP address.
    35  * `instance` - Contains the ID of the attached instance.
    36