-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.tf.sample
47 lines (39 loc) · 1.13 KB
/
setup.tf.sample
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
variable "heroku_email" {}
variable "heroku_api_key" {}
variable "blog_api_domain" {
default = "blog-api.herokuapp.com"
}
provider "heroku" {
email = "${var.heroku_email}"
api_key = "${var.heroku_api_key}"
}
resource "heroku_app" "blog-api" {
name = "blog-api"
region = "us"
config_vars {
LANG = "en_US.UTF-8"
DATABASE_URL = "postgres://[email protected]:5432/123"
RACK_ENV = "production"
RAILS_ENV = "production"
NEW_RELIC_LICENSE_KEY = "123456"
NEW_RELIC_LOG = "stdout"
PAPERTRAIL_API_TOKEN = "987654321"
REDIS_URL = "redis://h:[email protected]:15799"
}
}
resource "heroku_addon" "redis-blog-api" {
app = "${heroku_app.blog-api.name}"
plan = "heroku-redis:hobby-dev"
}
resource "heroku_addon" "papertrail-blog-api" {
app = "${heroku_app.blog-api.name}"
plan = "papertrail:choklad"
}
resource "heroku_addon" "newrelic-blog-api" {
app = "${heroku_app.blog-api.name}"
plan = "newrelic:wayne"
}
resource "heroku_addon" "scheduler-blog-api" {
app = "${heroku_app.blog-api.name}"
plan = "scheduler:standard"
}