Skip to content

Commit

Permalink
custom entry.tf for host
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Mar 24, 2023
1 parent 498122c commit 1c928c0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
3 changes: 2 additions & 1 deletion host/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
1 change: 0 additions & 1 deletion host/entry.tf

This file was deleted.

15 changes: 15 additions & 0 deletions host/entry.tf
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 1c928c0

Please sign in to comment.