mirror of
https://github.com/devitq/yandexcloud-k3s.git
synced 2026-09-20 17:00:34 +00:00
chore(scripts): added env script
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
# source me
|
||||
|
||||
export YC_CLOUD_ID=$(yc config get cloud-id)
|
||||
export YC_FOLDER_ID=$(yc config get folder-id)
|
||||
export YC_TOKEN=$(yc iam create-token)
|
||||
|
||||
export TF_VAR_folder_id=$YC_FOLDER_ID
|
||||
|
||||
if [ -f ./.env ]; then
|
||||
export $(grep -v '^#' ./.env | xargs)
|
||||
else
|
||||
echo ".env file not found!"
|
||||
fi
|
||||
Reference in New Issue
Block a user