-
Notifications
You must be signed in to change notification settings - Fork 0
/
provider.tf
56 lines (46 loc) · 1.18 KB
/
provider.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
terraform {
required_providers {
yandex = {
source = "yandex-cloud/yandex"
version = "0.89.0"
}
kubernetes = {
source = "hashicorp/kubernetes"
}
helm = {
source = "hashicorp/helm"
}
}
backend "s3" {
region = "us-east-1"
skip_metadata_api_check = true
skip_credentials_validation = true
}
required_version = ">= 1.3.0"
}
provider "yandex" {
cloud_id = local.cloud_id
folder_id = local.folder_id
endpoint = local.provider_endpoint
storage_endpoint = local.storage_endpoint
service_account_key_file = local.service_account_key_file
storage_access_key = local.sa_access_key
storage_secret_key = local.sa_secret_key
}
provider "kubernetes" {
host = local.k8s_cluster_endpoint
cluster_ca_certificate = local.k8s_cluster_ca_certificate
token = local.k8s_token
}
provider "helm" {
kubernetes {
host = local.k8s_cluster_endpoint
cluster_ca_certificate = local.k8s_cluster_ca_certificate
token = local.k8s_token
}
registry {
url = "oci://cr.yandex"
username = "json_key"
password = file(local.service_account_key_file)
}
}