terraform/website/source/docs/providers/aws/r/eip.html.markdown

35 lines
647 B
Markdown
Raw Normal View History

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" {
2014-07-30 00:12:00 +02:00
instance = "${aws_instance.web.id}"
vpc = true
2014-07-23 22:08:07 +02:00
}
```
## Argument Reference
The following arguments are supported:
2014-07-30 00:12:00 +02:00
* `vpc` - (Optional) Boolean if the EIP is in a VPC or not.
2014-07-23 22:08:07 +02:00
* `instance` - (Optional) EC2 instance ID.
## Attributes Reference
The following attributes are exported:
* `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.
* `instance` - Contains the ID of the attached instance.
2014-07-23 22:08:07 +02:00