github.com/ezbercih/terraform@v0.1.1-0.20140729011846-3c33865e0839/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.instance_id}" 16 } 17 ``` 18 19 ## Argument Reference 20 21 The following arguments are supported: 22 23 * `vpc` - (Optional) VPC ID 24 * `instance` - (Optional) EC2 instance ID. 25 26 ## Attributes Reference 27 28 The following attributes are exported: 29 30 * `private_ip` - Contrains the private IP address (if in VPC). 31 * `public_ip` - Contains the public IP address. 32 * `instance` - Contains the ID of the instance attached ot. 33