-
Notifications
You must be signed in to change notification settings - Fork 4
/
aws-acm.tf
56 lines (52 loc) · 1.77 KB
/
aws-acm.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
44
45
46
47
48
49
50
51
52
53
54
55
56
resource "aws_acm_certificate" "haxe-org" {
domain_name = "haxe.org"
subject_alternative_names = ["*.haxe.org"]
validation_method = "DNS"
lifecycle {
create_before_destroy = true
}
}
resource "aws_acm_certificate" "haxe-org-us-east-1-dns" {
provider = aws.us-east-1
domain_name = "haxe.org"
subject_alternative_names = ["*.haxe.org"]
validation_method = "DNS"
lifecycle {
create_before_destroy = true
}
}
resource "aws_acm_certificate_validation" "haxe-org-us-east-1-dns" {
provider = aws.us-east-1
certificate_arn = aws_acm_certificate.haxe-org-us-east-1-dns.arn
validation_record_fqdns = [for _, record in cloudflare_record.acm-haxe-org-us-east-1-dns : record.hostname]
}
resource "aws_acm_certificate" "haxedevelop-org-us-east-1" {
provider = aws.us-east-1
domain_name = "haxedevelop.org"
subject_alternative_names = ["*.haxedevelop.org"]
validation_method = "DNS"
lifecycle {
create_before_destroy = true
}
}
resource "aws_acm_certificate" "nekovm-org-us-east-1" {
provider = aws.us-east-1
domain_name = "nekovm.org"
validation_method = "EMAIL"
lifecycle {
create_before_destroy = true
}
}
resource "aws_acm_certificate" "nekovm-org-us-east-1-dns" {
provider = aws.us-east-1
domain_name = "nekovm.org"
validation_method = "DNS"
lifecycle {
create_before_destroy = true
}
}
resource "aws_acm_certificate_validation" "nekovm-org-us-east-1-dns" {
provider = aws.us-east-1
certificate_arn = aws_acm_certificate.nekovm-org-us-east-1-dns.arn
validation_record_fqdns = [for record in aws_route53_record.acm-nekovm-org-us-east-1-dns : record.fqdn]
}