I can’t figure out how the newer fly machine
CLI works:
❯ fly apps list
NAME OWNER STATUS PLATFORM LATEST DEPLOY
flxwebsites-db flx-websites deployed machines
fly-builder-bitter-feather-1279 flx-websites suspended machines
~/Code/flxwebsites main
❯ fly machine update flxwebsites-db -s dedicated-cpu-1x
Error could not get app: Could not find App
~/Code/flxwebsites main
❯ fly machine update -a flxwebsites-db -s dedicated-cpu-1x
Error: accepts 1 arg(s), received 0
I’m passing along the app name but it says “Could not find App”.
The list
command works but update
does not:
❯ fly machines list -a flxwebsites-db
1 machines have been retrieved.
View them in the UI here (https://fly.io/apps/flxwebsites-db/machines/)
flxwebsites-db
ID NAME STATE REGION IMAGE IP ADDRESS VOLUME CREATED LAST UPDATED
59185425a69836 summer-wildflower-1800 started ewr flyio/postgres:14.4 (v0.0.32) fdaa:0:db85:a7b:94:e946:63e3:2 vol_okgj545yog8vy2wz 2022-11-26T22:04:39Z 2022-11-26T22:04:52Z
❯ fly machines update -a flxwebsites-db -s dedicated-cpu-1x
Error: accepts 1 arg(s), received 0
Oy, OK, it’s fly machine update
, not machines
, but now I’m wondering why there are no dedicated CPUs available:
❯ fly machine update 59185425a69836 -a flxwebsites-db -s dedicated-cpu-1x
Error invalid machine size requested, 'dedicated-cpu-1x', available:
shared-cpu-1x
shared-cpu-2x
shared-cpu-4x
shared-cpu-8x
Ah okay I guess the pg machines only support shared CPUs.