Make create-droplet directly executable, and have slightly better documentation

This commit is contained in:
Eli Ribble 2025-07-17 16:45:41 +00:00
parent c022445849
commit f19be411a2

23
digitalocean/create-droplet.sh Normal file → Executable file
View file

@ -1,11 +1,20 @@
#! /usr/bin/env nix-shell
#! nix-shell -i bash -p bash
set -xe
NAME="test.nidus.cloud"
PROJECT="1782f0e0-0968-4fe2-ac7d-192584ec7ce5"
REGION="sfo3"
SIZE="s-1vcpu-2gb"
#SIZE="s-1vcpu-1gb" \
SSH_KEYS="48777034,46710608"
TAGS="nixos,test"
doctl compute droplet create \
"test.nidus.cloud" \
$NAME \
--enable-ipv6 \
--image debian-12-x64 \
--project-id ce2159e8-02f5-4169-8943-f34ccf812d23 \
--region sfo3 \
--size s-1vcpu-2gb \
--ssh-keys 48777034,46710608 \
--tag-name nixos \
--project-id $PROJECT\
--region $REGION \
--size $SIZE\
--ssh-keys $SSH_KEYS\
--tag-name $TAGS \
--wait
# --size s-1vcpu-1gb \