609 B
609 B
layout | page_title | sidebar_current |
---|---|---|
aws | AWS: aws_eip | 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 IDinstance
- (Optional) EC2 instance ID.
Attributes Reference
The following attributes are exported:
private_ip
- Contains the private IP address (if in VPC).public_ip
- Contains the public IP address.instance
- Contains the ID of the attached instance.