-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathdomains.tf
More file actions
27 lines (23 loc) · 778 Bytes
/
domains.tf
File metadata and controls
27 lines (23 loc) · 778 Bytes
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
data "aws_route53_zone" "zone" {
name = "pycon.it"
}
resource "aws_route53_record" "web_pycon" {
zone_id = data.aws_route53_zone.zone.zone_id
name = local.pycon_web_domain
type = "A"
alias {
name = aws_cloudfront_distribution.application.domain_name
zone_id = aws_cloudfront_distribution.application.hosted_zone_id
evaluate_target_health = false
}
}
resource "aws_route53_record" "web_tickets" {
zone_id = data.aws_route53_zone.zone.zone_id
name = local.pretix_web_domain
type = "A"
alias {
name = aws_cloudfront_distribution.application.domain_name
zone_id = aws_cloudfront_distribution.application.hosted_zone_id
evaluate_target_health = false
}
}