Terraform-aws-dns-terraform-module repository
This repo contains a Terraform module that manages an AWS Route53 Zone and its simple routing policy records.
- Manage AWS Route53 hosted zone
- Add/remove AWS Route53 records on the specified hosted zone
module dns {
source = "MauroSoli/terraform-aws-dns"
version = "3.19"
records = [
#[ "name", "type", TTL, [ "value" ]]
[ "", "A", 600, [ "123.123.123.123" ]],
[ "record01", "CNAME", 600, [ "example.aws.example.com." ]],
[ "record02", "A", 600, [ "143.204.9.89" ]]
]
}
output "aws_ns_records" {
value = module.dns.aws_zone_ns
description = "NS records for hosted zone"
}
The records output from aws_ns_records must be added to the parent DNS Zone
No modules.
Name |
Description |
Type |
Default |
Required |
dns_zone |
AWS hosted zone name |
string |
n/a |
yes |
is_it_a_registered_domain |
Is the specified domain an AWS registered domain? |
bool |
false |
no |
records |
DNS records |
list(any) |
[] |
no |