mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-07-25 07:46:27 +00:00
This should make it easy to start a bunch of clusters (using the new Terraform provisioning method) on various providers.
10 lines
304 B
Bash
Executable File
10 lines
304 B
Bash
Executable File
#!/bin/sh
|
|
export LINODE_TOKEN=$(grep ^token ~/.config/linode-cli | cut -d= -f2 | tr -d " ")
|
|
export DIGITALOCEAN_ACCESS_TOKEN=$(grep ^access-token ~/.config/doctl/config.yaml | cut -d: -f2 | tr -d " ")
|
|
for T in tag-*; do
|
|
(
|
|
cd $T
|
|
terraform apply -destroy -auto-approve && mv ../$T ../deleted$T
|
|
)
|
|
done
|