-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcidv2.tf
More file actions
34 lines (27 loc) · 745 Bytes
/
cidv2.tf
File metadata and controls
34 lines (27 loc) · 745 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
28
29
30
31
32
33
34
# CNAME for custom domain for expirimental fly.io deployment.
# https://fly.io/docs/networking/custom-domain/
resource "aws_route53_record" "experimental_api" {
zone_id = data.aws_route53_zone.imagedirectory_cloud.zone_id
name = "api"
type = "CNAME"
records = [
"cloudx-cidv2.fly.dev",
]
lifecycle {
create_before_destroy = true
}
ttl = "3600"
}
# Domain validation record for fly.io certificate.
resource "aws_route53_record" "flyio_domain_validation" {
zone_id = data.aws_route53_zone.imagedirectory_cloud.zone_id
name = "_acme-challenge.api"
type = "CNAME"
records = [
"api.imagedirectory.cloud.rgdx8e.flydns.net",
]
lifecycle {
create_before_destroy = true
}
ttl = "3600"
}