-
Notifications
You must be signed in to change notification settings - Fork 0
/
route53.tf
39 lines (34 loc) · 847 Bytes
/
route53.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
resource "aws_route53_zone" "private" {
name = "tmc-sandbox.com"
vpc {
vpc_id = aws_vpc.TKGVPC.id
}
}
resource "aws_route53_record" "harbor-record" {
zone_id = aws_route53_zone.private.zone_id
name = "harbor"
type = "A"
ttl = 1000
records = [ aws_instance.harbor.public_ip ]
}
resource "aws_route53_record" "tmc-record" {
zone_id = aws_route53_zone.private.zone_id
name = "tmc"
type = "A"
ttl = 1000
records = [ aws_eip.eks-eip.public_ip ]
}
resource "aws_route53_record" "star-tmc-record" {
zone_id = aws_route53_zone.private.zone_id
name = "*.tmc"
type = "A"
ttl = 1000
records = [ aws_eip.eks-eip.public_ip ]
}
resource "aws_route53_record" "s3-record" {
zone_id = aws_route53_zone.private.zone_id
name = "*.s3.tmc"
type = "A"
ttl = 1000
records = [ aws_eip.eks-eip.public_ip ]
}