-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathoakcrime.tf
78 lines (63 loc) · 2.36 KB
/
oakcrime.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
69
70
71
72
73
74
75
76
77
78
variable "oakcrime_prod_db_password" {
description = "db_password for the production app."
}
variable "oakcrime_prod_django_secret_key" {
description = "django_secret_key for the production app."
}
variable "oakcrime_prod_socrata_key" {
description = "socrata_key for the production app."
}
variable "oakcrime_prod_google_maps_api_key" {
description = "Google Maps API key for the production app."
}
variable "oakcrime_prod_box_enterprise_id" {
description = "BOX_ENTERPRISE_ID for the production app."
}
variable "oakcrime_prod_box_client_id" {
description = "BOX_CLIENT_ID for the production app."
}
variable "oakcrime_prod_box_client_secret" {
description = "BOX_CLIENT_SECRET for the production app."
}
variable "oakcrime_prod_box_public_key_id" {
description = "BOX_PUBLIC_KEY_ID for the production app."
}
variable "oakcrime_prod_box_rsa_key" {
description = "BOX_RSA_KEY for the production app."
}
variable "oakcrime_prod_box_pass_phrase" {
description = "BOX_PASS_PHRASE for the production app."
}
module "oakcrime" {
source = "./modules/oakcrime"
security_group_name = aws_security_group.ssh_and_web.name
key_pair_id = aws_key_pair.openoakland.id
# Beanstalk apps
dns_zone = data.aws_route53_zone.openoakland.name
prod_box_client_id = var.oakcrime_prod_box_client_id
prod_box_client_secret = var.oakcrime_prod_box_client_secret
prod_box_enterprise_id = var.oakcrime_prod_box_enterprise_id
prod_box_pass_phrase = var.oakcrime_prod_box_pass_phrase
prod_box_public_key_id = var.oakcrime_prod_box_public_key_id
prod_box_rsa_key = var.oakcrime_prod_box_rsa_key
prod_db_password = var.oakcrime_prod_db_password
prod_django_secret_key = var.oakcrime_prod_django_secret_key
prod_google_maps_api_key = var.oakcrime_prod_google_maps_api_key
prod_socrata_key = var.oakcrime_prod_socrata_key
providers = {
aws = aws
aws.cloudfront = aws.cloudfront
}
}
output "oakcrime_ci_aws_access_key_id" {
value = module.oakcrime.ci_aws_access_key_id
sensitive = true
}
output "oakcrime_ci_aws_secret_access_key" {
value = module.oakcrime.ci_aws_secret_access_key
sensitive = true
}
output "oakcrime_namecheap_name_servers" {
description = "Set the oakcrime.org domain nameservers to these values:"
value = module.oakcrime.namecheap_name_servers
}