forked from UpCloudLtd/uks-instructions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprovider.tf
24 lines (22 loc) · 775 Bytes
/
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
terraform {
required_providers {
upcloud = {
source = "UpCloudLtd/upcloud"
version = ">= 2.11.0"
}
}
}
# Empty provider block disabled by default
#provider "upcloud" {
# username and password configuration arguments can be omitted
# if environment variables UPCLOUD_USERNAME and UPCLOUD_PASSWORD are set
# username = ""
# password = ""
#}
# Kubernetes provider configuration uses the data source
provider "kubernetes" {
client_certificate = data.upcloud_kubernetes_cluster.example.client_certificate
client_key = data.upcloud_kubernetes_cluster.example.client_key
cluster_ca_certificate = data.upcloud_kubernetes_cluster.example.cluster_ca_certificate
host = data.upcloud_kubernetes_cluster.example.host
}