-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmadlibrarian.tf
68 lines (57 loc) · 1.96 KB
/
madlibrarian.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
57
58
59
60
61
62
63
64
65
66
67
68
module "akerl-hf-library" {
source = "armorfret/lambda-madlibrarian/aws"
version = "0.9.2"
logging_bucket = aws_s3_bucket.logging.id
config_bucket = "akerl-hf-library"
data_bucket = "akerl-hf-library"
lambda_bucket = module.akerl-madlibrarian.publish_bucket
hostname = "hf.coolquotes.xyz"
}
module "akerl-books-library" {
source = "armorfret/lambda-madlibrarian/aws"
version = "0.9.2"
logging_bucket = aws_s3_bucket.logging.id
config_bucket = "akerl-book-library"
data_bucket = "akerl-book-library"
lambda_bucket = module.akerl-madlibrarian.publish_bucket
hostname = "books.coolquotes.xyz"
}
module "akerl-dcs-library" {
source = "armorfret/lambda-madlibrarian/aws"
version = "0.9.2"
logging_bucket = aws_s3_bucket.logging.id
config_bucket = "akerl-dcs-library"
data_bucket = "akerl-dcs-library"
lambda_bucket = module.akerl-madlibrarian.publish_bucket
hostname = "dcs.coolquotes.xyz"
}
resource "aws_route53_record" "a_hf_coolquotes_xyz" {
zone_id = module.zones["coolquotes.xyz"].zone_id
name = "hf.coolquotes.xyz"
type = "A"
alias {
name = module.akerl-hf-library.dns_name
zone_id = module.akerl-blog.cloudfront_zone_id
evaluate_target_health = false
}
}
resource "aws_route53_record" "a_books_coolquotes_xyz" {
zone_id = module.zones["coolquotes.xyz"].zone_id
name = "books.coolquotes.xyz"
type = "A"
alias {
name = module.akerl-books-library.dns_name
zone_id = module.akerl-blog.cloudfront_zone_id
evaluate_target_health = false
}
}
resource "aws_route53_record" "a_dcs_coolquotes_xyz" {
zone_id = module.zones["coolquotes.xyz"].zone_id
name = "dcs.coolquotes.xyz"
type = "A"
alias {
name = module.akerl-dcs-library.dns_name
zone_id = module.akerl-blog.cloudfront_zone_id
evaluate_target_health = false
}
}