Skip to content

Commit 5dec557

Browse files
committed
Revert "aws: Add each test instance to the local DNS service"
A private DNS zone takes 2 minutes to set up and tear down, respectively, and is unneeded because kdevops already adds the instance hostnames to /etc/hosts. Signed-off-by: Chuck Lever <[email protected]>
1 parent 3228982 commit 5dec557

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

terraform/aws/main.tf

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -179,33 +179,3 @@ resource "aws_route_table_association" "kdevops_rt_assoc" {
179179
route_table_id = aws_route_table.kdevops_rt.id
180180
}
181181

182-
resource "aws_vpc_dhcp_options" "kdevops_dhcp_opts" {
183-
domain_name = "kdevops.local"
184-
domain_name_servers = ["AmazonProvidedDNS"]
185-
186-
tags = {
187-
Name = "kdevops_dhcp_opts"
188-
}
189-
}
190-
191-
resource "aws_vpc_dhcp_options_association" "kdevops_dhcp_association" {
192-
vpc_id = aws_vpc.kdevops_vpc.id
193-
dhcp_options_id = aws_vpc_dhcp_options.kdevops_dhcp_opts.id
194-
}
195-
196-
resource "aws_route53_zone" "kdevops_private_zone" {
197-
name = "kdevops.local"
198-
vpc {
199-
vpc_id = aws_vpc.kdevops_vpc.id
200-
}
201-
}
202-
203-
resource "aws_route53_record" "kdevops_dns_record" {
204-
count = local.kdevops_num_boxes
205-
zone_id = aws_route53_zone.kdevops_private_zone.zone_id
206-
name = "${element(var.kdevops_nodes, count.index)}.kdevops.local"
207-
type = "A"
208-
ttl = "300"
209-
records = ["${element(aws_instance.kdevops_instance.*.private_ip, count.index)}"]
210-
}
211-

0 commit comments

Comments
 (0)