Variables
SATELLITE_ID=<new satellite name>
MASTER_URL=<master base URL> # infra provision defaults to $BASHY_CLOUDBOX_URL, else the official portal
OWNER_TOKEN_SECRET=<vault name of an owner bearer with the satellites scope>
AWS_REGION=us-west-2
Steps
- Check the master’s satellite list first. The master never deletes satellite rows, so a name may already be taken by an old satellite:
bashy secret exec "$OWNER_TOKEN_SECRET=T" -- /bin/sh -c \
'curl -s -H "Authorization: Bearer $T" "$1/api/v1/satellites"' sh "$MASTER_URL"
- Register the name (expect
201):
bashy secret exec "$OWNER_TOKEN_SECRET=T" -- /bin/sh -c \
'curl -s -o /dev/null -w "%{http_code}\n" -X POST -H "Authorization: Bearer $T" \
-H "Content-Type: application/json" -d "{\"name\":\"$2\",\"endpoint\":\"\"}" \
"$1/api/v1/satellites"' sh "$MASTER_URL" "$SATELLITE_ID"
- Dry run: prints the request, the size verdict and the budget verdict; creates nothing:
bashy secret exec AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY -- \
bashy infra provision aws --satellite "$SATELLITE_ID" \
--region "$AWS_REGION" --size small_3_0 --image ubuntu_24_04 --dry-run
- Live: the same with the owner bearer in
BASHY_FLEET_TOKEN(add--master "$MASTER_URL"when it is not the default):
bashy secret exec AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY "$OWNER_TOKEN_SECRET=BASHY_FLEET_TOKEN" -- \
bashy infra provision aws --satellite "$SATELLITE_ID" \
--region "$AWS_REGION" --size small_3_0 --image ubuntu_24_04
It reserves the static IP <id>-ip first, gets the enrollment bundle rendered for https://<a-b-c-d>.sslip.io (dashed address, one wildcard label), creates the instance, applies the satellite firewall (no internet-facing sshd) and attaches the address. The endpoint is printed; it answers HTTP 200 about a minute after boot. Re-running with the same --satellite is idempotent.
Sign in as the owner from the master’s Satellites page, then Open console. The satellite’s own landing page has no sign-in.
Pairing codes for hosts: owner console, Hosts, Generate invite code.
bashy satellite invite --satellite "$SATELLITE_URL" --name "$HOST_NAME"needs a bearer that can be exchanged for thehost:invite-mintscope; an owner token without it is refused.Inspect and tear down:
bashy secret exec AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY -- \
bashy infra inspect aws --name "$SATELLITE_ID" --region "$AWS_REGION"
bashy secret exec AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY -- \
bashy infra destroy aws --name "$SATELLITE_ID" --region "$AWS_REGION" --yes
bashy secret exec AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY -- \
bashy infra list --provider aws --region "$AWS_REGION" # prove nothing is left
Destroy releases the static IP and the staged first-boot script too, and is safe to run after a failed create. Stopping is not enough: a stopped Lightsail instance still bills, as does an unattached static IP. The satellite row at the master stays (see step 1).
Notes
- Budget guard, region pinning and billing traps: see the page on accessing DigitalOcean and AWS, and
yoke/docs/s522-2-aws-lightsail-adapter.md. - Rehearse satellite flows before paying for a cloud host: a cloudbox dev-mode sandbox can run master + satellite + hosts end to end locally (the operator’s harness for this is private; the approach is generic).
- For DigitalOcean see the DO satellite page (not verified live).
Candidate Bash# script
satellite-provision.bsh — check | register | plan | up | down over steps 1-4 and 7, with the variables above as flags, waiting for the endpoint’s 200 after up. Not written yet.