diff --git a/host/README.md b/host/README.md index 95f732a..5bbcaf3 100644 --- a/host/README.md +++ b/host/README.md @@ -52,10 +52,11 @@ The record looks like: | Name | Type | |------|------| -| [aws_route53_record.entry](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route53_record) | resource | | [aws_route53_record.entry_heritage](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route53_record) | resource | +| [aws_route53_record.entry_ipv4](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route53_record) | resource | | [aws_route53_record.entry_ipv4_ptr](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route53_record) | resource | | [aws_route53_record.entry_ipv4_ptr_heritage](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route53_record) | resource | +| [aws_route53_record.entry_ipv6](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route53_record) | resource | | [aws_route53_record.entry_ipv6_ptr](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route53_record) | resource | | [aws_route53_record.entry_ipv6_ptr_heritage](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route53_record) | resource | | [time_static.timestamp](https://registry.terraform.io/providers/hashicorp/time/latest/docs/resources/static) | resource | diff --git a/host/entry.tf b/host/entry.tf deleted file mode 120000 index f43d394..0000000 --- a/host/entry.tf +++ /dev/null @@ -1 +0,0 @@ -../common/entry.tf \ No newline at end of file diff --git a/host/entry.tf b/host/entry.tf new file mode 100644 index 0000000..8fbc929 --- /dev/null +++ b/host/entry.tf @@ -0,0 +1,15 @@ +resource "aws_route53_record" "entry_ipv4" { + zone_id = data.aws_route53_zone.zone.zone_id + name = var.name + type = "A" + ttl = var.ttl + records = local.ipv4_hosts +} + +resource "aws_route53_record" "entry_ipv6" { + zone_id = data.aws_route53_zone.zone.zone_id + name = var.name + type = "AAAA" + ttl = var.ttl + records = local.ipv6_hosts +}