mirror of
https://github.com/devitq/yandexcloud-k3s.git
synced 2026-09-20 22:50:34 +00:00
16 lines
359 B
Bash
Executable File
16 lines
359 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
if [ -f ./.env ]; then
|
|
export $(grep -v '^#' ./.env | xargs)
|
|
else
|
|
echo ".env file not found!"
|
|
exit 1
|
|
fi
|
|
|
|
terraform init \
|
|
-backend-config="endpoint=${AWS_ENDPOINT}" \
|
|
-backend-config="bucket=${AWS_BUCKET}" \
|
|
-backend-config="key=${AWS_BUCKET_KEY}" \
|
|
-backend-config="use_path_style=${AWS_USE_PATH_STYLE}" \
|
|
-migrate-state
|