chore: remove hardcoded token from examples, use SLESS_API_TOKEN env

This commit is contained in:
“Naeel” 2026-03-09 19:25:52 +04:00
parent 392eec6779
commit 113dc5ee7a
4 changed files with 5 additions and 5 deletions

View File

@ -15,6 +15,6 @@ terraform {
provider "sless" { provider "sless" {
endpoint = "https://sless-api.kube5s.ru" endpoint = "https://sless-api.kube5s.ru"
token = "dev-token-change-me" # token читается из SLESS_API_TOKEN
} }

View File

@ -20,8 +20,8 @@ terraform {
} }
# sless провайдер подключается к API кластера. # sless провайдер подключается к API кластера.
# В продакшне token следует передавать через TF_VAR или secrets. # token читается из переменной окружения SLESS_API_TOKEN.
provider "sless" { provider "sless" {
endpoint = "https://sless-api.kube5s.ru" endpoint = "https://sless-api.kube5s.ru"
token = "dev-token-change-me" # token читается из SLESS_API_TOKEN
} }

View File

@ -26,5 +26,5 @@ terraform {
provider "sless" { provider "sless" {
endpoint = "https://sless-api.kube5s.ru" endpoint = "https://sless-api.kube5s.ru"
token = "dev-token-change-me" # token читается из SLESS_API_TOKEN
} }

View File

@ -25,5 +25,5 @@ terraform {
provider "sless" { provider "sless" {
endpoint = "https://sless-api.kube5s.ru" endpoint = "https://sless-api.kube5s.ru"
token = "dev-token-change-me" # token читается из SLESS_API_TOKEN
} }