4.0.2
This commit is contained in:
31
samples/cloudapi/data_k8s_computes/main.tf
Normal file
31
samples/cloudapi/data_k8s_computes/main.tf
Normal file
@@ -0,0 +1,31 @@
|
||||
#Расскомментируйте этот код,
|
||||
#и внесите необходимые правки в версию и путь,
|
||||
#чтобы работать с установленным вручную (не через hashicorp provider registry) провайдером
|
||||
/*
|
||||
terraform {
|
||||
required_providers {
|
||||
decort = {
|
||||
source = "terraform.local/local/decort"
|
||||
version = "<VERSION>"
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
provider "decort" {
|
||||
authenticator = "oauth2"
|
||||
oauth2_url = "https://sso.digitalenergy.online"
|
||||
controller_url = "https://mr4.digitalenergy.online"
|
||||
app_id = ""
|
||||
app_secret = ""
|
||||
}
|
||||
|
||||
data "decort_k8s_computes" "computes" {
|
||||
# ID кластера
|
||||
# Обязательный параметр
|
||||
k8s_id = 999
|
||||
}
|
||||
|
||||
output "computes_out" {
|
||||
value = data.decort_k8s_computes.computes
|
||||
}
|
||||
Reference in New Issue
Block a user