From 1c928c0db29d753bd56e7184819ed6e8707d48f2 Mon Sep 17 00:00:00 2001 From: badra001 Date: Fri, 24 Mar 2023 15:41:19 -0400 Subject: [PATCH] custom entry.tf for host --- host/README.md | 3 ++- host/entry.tf | 16 +++++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) mode change 120000 => 100644 host/entry.tf 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 +}