flyctl
flyctl copied to clipboard
Setting secrets doesn't work when a shell machine is created before app machines
Per @lillianberryfly:
$ fly secrets import <secrets
Secrets are staged for the first deployment
$ fly m run --shell [...]
[...]
$ fly secrets import <.env.production
[WARNING] Your app doesn't have any Fly Launch machines, so we'll create one now. Learn more at
https://fly.io/docs/apps/deploy/#machines-not-managed-by-fly-launch
Error: could not find image to use for deployment; backend error was: current release not found for app X
I wasn't able to reproduce this but what I found out is the shell machine doesn't have any of the app's set secrets.