-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
83 lines (73 loc) · 1.4 KB
/
variables.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
79
80
81
82
83
######################
# VARIABLES |
######################
# General
# -------
variable "prefix" {}
variable "common_tags" {
type = map(string)
}
# Github
# ----------
variable "github" {
type = object({
owner = string
connection_arn = string
webhook_secret = string
})
}
variable "pre_release" {
default = true
}
variable "github_repository" {
type = object({
name = string
branch = string
})
}
# Artifacts
# ---------
variable "s3_artifacts" {
type = object({
bucket = string
arn = string
})
}
# Web app
# -------
variable "s3_web" {
type = object({
bucket = string
arn = string
})
}
# Cloudfront
# ----------
variable "cloudfront_distribution_id" {}
# Notification
# ------------
variable "ci_notifications_slack_channels" {
description = "Slack channel name for notifying ci pipeline info/alerts"
type = object({
info = string
alert = string
})
}
# Build
# -----
variable "app_base_dir" {
description = "The directory to change to before starting a build, useful for monorepos"
default = "."
}
variable "app_node_version" {
description = "Application node version"
default = "latest"
}
variable "app_install_cmd" {
description = "Application install command"
default = "yarn install"
}
variable "app_build_cmd" {
description = "Application build command"
default = "yarn build"
}