-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathintercon_furniture.tf
78 lines (63 loc) · 2.51 KB
/
intercon_furniture.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 "intercon_furniture_production_db_password" {
type = string
}
variable "intercon_furniture_intercode_oauth_client_id" {
type = string
}
variable "intercon_furniture_intercode_oauth_client_secret" {
type = string
}
variable "intercon_furniture_papertrail_api_token" {
type = string
}
locals {
intercon_furniture_domains = toset([
"furniture.interconlarp.org"
])
intercon_furniture_cors_allowed_origins = [for domain in local.intercon_furniture_domains : "https://${domain}"]
}
# The Heroku app itself
# resource "heroku_app" "intercon_furniture" {
# name = "intercon-furniture"
# region = "us"
# stack = "heroku-22"
# acm = true
# organization {
# name = "neinteractiveliterature"
# }
# config_vars = {
# DATABASE_SSL = "1"
# INTERCODE_CALLBACK_URL = "https://furniture.interconlarp.org/oauth_callback"
# INTERCODE_GRAPHQL_URL = "https://u.interconlarp.org/graphql"
# INTERCODE_TOKEN_URL = "https://u.interconlarp.org/oauth/token"
# INTERCODE_URL = "https://u.interconlarp.org/oauth/authorize"
# INTERCON_BASE_URL = "https://u.interconlarp.org"
# NODE_ENV = "production"
# PGSSLMODE = "noverify"
# SESSION_TYPE = "postgresql"
# TZ = "America/New_York"
# }
# sensitive_config_vars = {
# DATABASE_URL = "postgres://intercon_furniture_production:${var.intercon_furniture_production_db_password}@${aws_db_instance.neil_production.endpoint}/intercon_furniture_production?sslrootcert=rds-combined-ca-bundle-2019.pem"
# INTERCODE_OAUTH_CLIENT_ID = var.intercon_furniture_intercode_oauth_client_id
# INTERCODE_OAUTH_CLIENT_SECRET = var.intercon_furniture_intercode_oauth_client_secret
# PAPERTRAIL_API_TOKEN = var.intercon_furniture_papertrail_api_token
# }
# }
# resource "heroku_drain" "intercon_furniture_vector" {
# app_id = heroku_app.intercon_furniture.id
# url = "https://${var.vector_heroku_source_username}:${var.vector_heroku_source_password}@vector.interactiveliterature.org/events?application=intercon-furniture"
# }
# resource "heroku_domain" "intercon_furniture" {
# for_each = local.intercon_furniture_domains
# app_id = heroku_app.intercon_furniture.uuid
# hostname = each.value
# }
resource "aws_cloudwatch_log_group" "intercon_furniture_production" {
name = "intercon_furniture_production"
tags = {
Environment = "production"
Application = "intercon-furniture"
}
retention_in_days = 30
}