Skip to content

CLI tool for bootstrapping Terraform (state bucket, sa, access key, lockbox secret) for Yandex Cloud project

Notifications You must be signed in to change notification settings

bratushkadan/yc-terraform-bootstrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Template to setup Yandex Cloud project

Roadmap

  • Provision resources for Terraform bucket
  • Packing into binary instructions
  • Cobra
  • re-create terraform/access-key.yaml from terraform/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)

Steps

  1. Fill up the "terraform/config.yaml" config.
  2. Run:
TF_DIR=./terraform YC_TOKEN=$(./terraform/token) yc-terraform-bootstrapper 

Use repo as starter

  1. Build
  2. Run the command:
rm -rf ./scripts

Build

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 ../

About

CLI tool for bootstrapping Terraform (state bucket, sa, access key, lockbox secret) for Yandex Cloud project

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published