Terraform all resources, update encryption scheme, add ingress
This commit is contained in:
parent
b34b075d10
commit
3b85d6e85b
20 changed files with 731 additions and 970 deletions
15
terraform/dns.tf
Normal file
15
terraform/dns.tf
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# Route53 records - using a data source to reference the existing hosted zone
|
||||
# without importing it into Terraform state
|
||||
data "aws_route53_zone" "dumpnet" {
|
||||
zone_id = var.hosted_zone_id
|
||||
}
|
||||
|
||||
resource "aws_route53_record" "cluster" {
|
||||
for_each = toset(var.dns_records)
|
||||
|
||||
zone_id = data.aws_route53_zone.dumpnet.zone_id
|
||||
name = "${each.value}.${var.domain}"
|
||||
type = "A"
|
||||
ttl = 300
|
||||
records = [aws_eip.controlplane.public_ip]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue