-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.tf
53 lines (45 loc) · 935 Bytes
/
main.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
terraform {
required_providers {
heroku = {
source = "heroku/heroku"
}
}
cloud {
organization = "cohky"
workspaces {
name = "invite"
}
}
}
provider "heroku" {}
variable "APP_ENV" {}
variable "DISCORD_TOKEN" {}
resource "heroku_app" "invite-ydkk" {
acm = false
buildpacks = [
"heroku/go"
]
config_vars = {
APP_ENV : var.APP_ENV
DISCORD_TOKEN : var.DISCORD_TOKEN
}
internal_routing = false
name = "invite-ydkk"
region = "us"
sensitive_config_vars = {}
space = null
stack = "heroku-20"
}
resource "heroku_build" "invite-ydkk" {
app_id = heroku_app.invite-ydkk.id
source {
path = "./app"
}
}
resource "heroku_formation" "worker" {
app_id = heroku_app.invite-ydkk.id
quantity = 1
size = "Free"
type = "worker"
depends_on = [heroku_build.invite-ydkk]
}