Resource: aws_eip_domain_name

Assigns a static reverse DNS record to an Elastic IP addresses. See Using reverse DNS for email applications.

Example Usage

resource "aws_eip" "example" {
  domain = "vpc"
}

resource "aws_route53_record" "example" {
  zone_id = aws_route53_zone.main.zone_id
  name    = "reverse"
  type    = "A"

  records = [aws_eip.example.public_ip]
}

resource "aws_eip_domain_name" "example" {
  allocation_id = aws_eip.example.allocation_id
  domain_name   = aws_route53_record.example.fqdn
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Timeouts

Configuration options: