Install dependencies.
brew install jq direnv ansible pipenv
Configure Digital Ocean credentials.
echo "export DO_API_TOKEN=REPLACE_ME" > .envrc
echo "export TF_VAR_do_token=$DO_API_TOKEN >> .envrc
direnv allow
pipenv shell
Create droplets.
make terraform
Provision droplets.
make ansible
Get all images.
curl -X GET --silent "https://api.digitalocean.com/v2/images?per_page=999" -H "Authorization: Bearer $DO_API_TOKEN" | jq
Get public keys.
curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $DO_API_TOKEN" "https://api.digitalocean.com/v2/account/keys" | jq
Content type
Image
Digest
Size
47.2 MB
Last updated
about 8 years ago
docker pull cherwin/crntechio