-
Notifications
You must be signed in to change notification settings - Fork 0
/
r53.tf
43 lines (35 loc) · 1.02 KB
/
r53.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
resource "aws_route53_record" "ec2_a" {
name = local.full_domain_name
type = "A"
zone_id = data.aws_route53_zone.self.zone_id
records = [aws_eip.ec2.public_ip]
ttl = 60
}
resource "aws_route53_record" "ec2_aaaa" {
name = local.full_domain_name
type = "AAAA"
zone_id = data.aws_route53_zone.self.zone_id
records = aws_instance.web.ipv6_addresses
ttl = 60
}
resource "aws_route53_record" "acm_caa" {
name = local.full_domain_name
type = "CAA"
ttl = 3600
records = ["0 issue \"letsencrypt.org\""]
zone_id = data.aws_route53_zone.self.zone_id
}
/*resource "aws_route53_record" "postgres_a" {
name = "postgres.${local.full_domain_name}"
type = "A"
zone_id = data.aws_route53_zone.self.zone_id
records = [aws_eip.postgres.private_ip]
ttl = 60
}*/
resource "aws_route53_record" "postgres_aaaa" {
name = "postgres.${local.full_domain_name}"
type = "AAAA"
zone_id = data.aws_route53_zone.self.zone_id
records = aws_instance.postgres.ipv6_addresses
ttl = 60
}