Data Source: aws_eips

Provides a list of Elastic IPs in a region.

Example Usage

The following shows outputting all Elastic IPs with the a specific tag value.

data "aws_eips" "example" {
  tags = {
    Env = "dev"
  }
}

# VPC EIPs.
output "allocation_ids" {
  value = data.aws_eips.example.allocation_ids
}

# EC2-Classic EIPs.
output "public_ips" {
  value = data.aws_eips.example.public_ips
}

Argument Reference

More complex filters can be expressed using one or more filter sub-blocks, which take the following arguments:

Attribute Reference

This data source exports the following attributes in addition to the arguments above:

Timeouts

Configuration options: