Set secrets when launching app?

Is it possible to set secrets in the same call as creating a new app, instead of doing it as a second separate call to fly?

Hi there,

If these are machines or AppsV2, then there’s a way to stage secrets before machines next run or update.

Does this work?

flyctl create ... the app (the namespace for secrets or machines)

flyctl secrets set ... --stage vars

flyctl launch or flyctl deploy the app / flyctl m run ... machines

1 Like

That’s what I ended up doing - setting the secrets before launching the machine so that i wouldn’t trigger a machine restart. Thanks friend :slight_smile:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.