Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

idempotency please : fly apps create fails is the app already exists, and I cant use "-p" for example to allow it to fail silently. #3914

Open
gedw99 opened this issue Sep 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@gedw99
Copy link

gedw99 commented Sep 2, 2024

Please only report specific issues with flyctl behavior. Anything like a support request for your application should go to https://community.fly.io. More people watch that space and can help you faster!

Describe the bug
Briefly, describe what broke and provide the following details:

fly  apps create gedw99-rio-app
automatically selected personal organization: Gerard Webb
Error: Validation failed: Name has already been taken

There is no option to not error, if the app is already created.

fly apps create -h
Create a new application on the Fly platform. This command won't generate a fly.toml configuration file, but
you can fetch one with 'fly config save -a <app_name>'.

Usage:
  fly apps create <app name> [flags]

Flags:
      --generate-name    Generate an app name
  -h, --help             help for create
  -j, --json             JSON output
      --name string      The app name to use
      --network string   Specify custom network id
  -o, --org string       The target Fly.io organization

Global Flags:
  -t, --access-token string   Fly API Access Token
      --debug                 Print additional logs and traces
      --verbose               Verbose output

We have unix'smkdir -p for idempotency reasons.

It would be nice if fly apps create and other pertinent fly commands had this feature too.

It would mean that scripts using flyctl can be more automated.

I have been using fly for a fair while and it's getting harder to write scripts as fly gets more features too. I feel that adding some basic idempotency would be in helpful.

Happy to discuss..

  • Operating system
  • fly version

fly version
fly v0.2.124 darwin/arm64 Commit: 790bb3b BuildDate: 2024-08-29T17:17:41Z

@gedw99 gedw99 added the bug Something isn't working label Sep 2, 2024
@gedw99 gedw99 changed the title idempotency please : fly apps create for example idempotency please : fly apps create fails is the app already exists, and I cant use "-p" for example to allow it to fail silently. Sep 2, 2024
@gedw99 gedw99 changed the title idempotency please : fly apps create fails is the app already exists, and I cant use "-p" for example to allow it to fail silently. idempotency please : fly apps create fails is the app already exists, and I cant use "-p" for example to allow it to fail silently. Sep 2, 2024
@gedw99 gedw99 changed the title idempotency please : fly apps create fails is the app already exists, and I cant use "-p" for example to allow it to fail silently. idempotency please : fly apps create fails is the app already exists, and I cant use "-p" for example to allow it to fail silently. Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant