forked from skipor/yandex-scale-2021-kubernetes-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvars.tf
28 lines (24 loc) · 811 Bytes
/
vars.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
variable "folder_id" {
description = <<-EOT
ID of folder for the Yandex Scale 2021 Kubernetes workshop participant.
Run:
source ./set_tf_vars_from_yc_config.sh
to set it from `yc config`.
EOT
type = string
}
variable "yc_token" {
description = <<-EOT
OAuth token for the Yandex Scale 2021 Kubernetes workshop participant user account.
Run:
source ./set_tf_vars_from_yc_config.sh
to set it from `yc config`.
EOT
type = string
}
// Использование locals скрывает то, откуда берутся эти параметры.
// На бонусном шаге мы покажем как terraform может эти параметры из yc config самостоятельно.
locals {
folder_id = var.folder_id
yc_token = var.yc_token
}