-
Notifications
You must be signed in to change notification settings - Fork 2
/
variables.tf
85 lines (77 loc) · 2.15 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
84
85
/**
* The variables can be set in ./terraform.tfvars file or by env variables:
export TF_VAR_{variable-name}=xxxxxxxxxxxxxxx
**/
# for TFE setup
variable "org" {
type = string
description = "The terraform cloud org name"
}
variable "token" {
type = string
description = "The terraform cloud token"
}
# For code generation
variable "yamldir" {
type = string
default = "."
description = "The directory where yamls located"
}
variable "targetdir" {
type = string
default = "./../_terraform/"
description = "The directory where tf cloud workspace corresponding workspaces will be created"
}
variable "rootdir" {
type = string
default = "./_terraform/"
description = "The directory on git repo where the workspaces creator main.tf file located "
}
# SCM
variable "git_provider" {
type = string
default = "gitlab"
description = "The vsc(github, gitlab, ...) provider id"
}
variable "git_org" {
type = string
description = "The github org/owner name"
}
variable "git_repo" {
type = string
description = "The github repo name without org prefix"
}
variable "git_token" {
type = string
description = "The vsc(github, gitlab, ...) personal access token. TFC oauth token can be created manually or externally and oken supplied via this variable."
}
# Cloud Access (goes to shared variable set, should be adjusted)
variable "aws" {
type = map(any)
default = {
access_key_id = ""
secret_access_key = ""
session_token = ""
security_token = ""
default_region = ""
region = ""
}
# variable "aws_access_key_id" {
# type = string
# description = "The aws user access key"
# }
# variable "aws_secret_access_key" {
# type = string
# description = "The aws user secret access key"
# }
# variable "aws_default_region" {
# type = string
# default = "eu-central-1"
# description = "The aws default region"
# }
}
variable "auto_apply" {
type = bool
default = false
description = "To have workspaces automatically apply after plan is done successfully."
}