2014-07-23 22:08:07 +02:00
|
|
|
---
|
|
|
|
layout: "aws"
|
|
|
|
page_title: "AWS: aws_eip"
|
|
|
|
sidebar_current: "docs-aws-resource-eip"
|
|
|
|
---
|
|
|
|
|
|
|
|
# aws\_eip
|
|
|
|
|
|
|
|
Provides an Elastic IP resource.
|
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
|
|
|
```
|
|
|
|
resource "aws_eip" "lb" {
|
|
|
|
instance = "${aws_instance.web.instance_id}"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Argument Reference
|
|
|
|
|
|
|
|
The following arguments are supported:
|
|
|
|
|
|
|
|
* `vpc` - (Optional) VPC ID
|
|
|
|
* `instance` - (Optional) EC2 instance ID.
|
|
|
|
|
|
|
|
## Attributes Reference
|
|
|
|
|
|
|
|
The following attributes are exported:
|
|
|
|
|
2014-07-29 08:51:24 +02:00
|
|
|
* `private_ip` - Contains the private IP address (if in VPC).
|
2014-07-23 22:08:07 +02:00
|
|
|
* `public_ip` - Contains the public IP address.
|
2014-07-29 08:51:24 +02:00
|
|
|
* `instance` - Contains the ID of the attached instance.
|
2014-07-23 22:08:07 +02:00
|
|
|
|