- Provision resources for Terraform bucket
- Packing into binary instructions
- Cobra
- re-create
terraform/access-key.yaml
fromterraform/state.yaml
- list resources from "state.yaml"
Lower priority:
- dry run
- dangling resources cleanup
- reorganizing repo (provision script source code & distribution is separate from the terraform template)
- Fill up the "terraform/config.yaml" config.
- Run:
TF_DIR=./terraform YC_TOKEN=$(./terraform/token) yc-terraform-bootstrapper
- Build
- Run the command:
rm -rf ./scripts
cd scripts
BUILD_BIN_PATH=$(mktemp)
CGO_ENABLED=0 go build -o "${BUILD_BIN_PATH}" ./...
sudo mv -f "${BUILD_BIN_PATH}" /usr/local/bin/yc-terraform-bootstrapper
cd ../