This repository has been archived by the owner on Jul 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
/
discourse.tf
48 lines (40 loc) · 2.54 KB
/
discourse.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
variable "discourse_production_tldr_api_key" {}
variable "discourse_staging_tldr_api_key" {}
module "discourse-production" {
source = "./modules/discourse"
environment = "production"
vpc_id = "${aws_vpc.apps-production-vpc.id}"
discourse_elasticache_instance_size = "cache.t2.medium"
service_security_group_id = "${module.mesos-cluster-production.mesos-cluster-slave-sg-id}"
elasticache_subnet_group = "${aws_elasticache_subnet_group.elasticache-production-subnet-group.name}"
fqdn = "discourse.mozilla.org"
ssl_certificate = "${lookup(var.ssl_certificates, "community-sites-elb-${var.aws_region}")}"
iam-assume-role-policy = "${data.aws_iam_policy_document.containers-assume-role-policy.json}"
}
module "discourse-staging" {
source = "./modules/discourse"
environment = "staging"
vpc_id = "${aws_vpc.apps-production-vpc.id}"
discourse_elasticache_instance_size = "cache.t2.micro"
service_security_group_id = "${module.mesos-cluster-production.mesos-cluster-slave-sg-id}"
elasticache_subnet_group = "${aws_elasticache_subnet_group.elasticache-production-subnet-group.name}"
fqdn = "discourse-staging.production.paas.mozilla.community"
ssl_certificate = "${lookup(var.ssl_certificates, "community-sites-elb-${var.aws_region}")}"
iam-assume-role-policy = "${data.aws_iam_policy_document.containers-assume-role-policy.json}"
}
module "discourse-production-tldr" {
source = "./modules/discourse-tldr"
environment = "production"
discourse_tldr_api_key = "${var.discourse_production_tldr_api_key}"
discourse_tldr_api_username = "tldr"
discourse_tldr_category = "253"
discourse_tldr_url = "https://discourse.mozilla.org"
}
module "discourse-staging-tldr" {
source = "./modules/discourse-tldr"
environment = "staging"
discourse_tldr_api_key = "${var.discourse_staging_tldr_api_key}"
discourse_tldr_api_username = "tldr"
discourse_tldr_category = "216"
discourse_tldr_url = "https://discourse-staging.production.paas.mozilla.community"
}