Assigns a static reverse DNS record to an Elastic IP addresses. See Using reverse DNS for email applications.
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
}
This resource supports the following arguments:
allocation_id
- (Required) The allocation ID.domain_name
- (Required) The domain name to modify for the IP address.This resource exports the following attributes in addition to the arguments above:
ptr_record
- The DNS pointer (PTR) record for the IP address.create
- (Default 10m
)update
- (Default 10m
)delete
- (Default 10m
)