Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Apps for machines must be created via the Machines API but the provider is creating Apps using v1 nomad way #161

Closed
kdevan opened this issue Mar 2, 2023 · 1 comment

Comments

@kdevan
Copy link

kdevan commented Mar 2, 2023

Getting this error:

╷
│ Error: Failed to create machine
│ 
│   with fly_machine.server,
│   on main.tf line 197, in resource "fly_machine" "server":
│  197: resource "fly_machine" "server" {
│ 
│ Create request failed: 422 Unprocessable Entity, {"error":"Apps for machines must be created via the Machines API. See https://fly.io/docs/reference/machines/#create-a-fly-application."}
│ 
╵

I'm guessing this is related to this news: https://community.fly.io/t/fly-apps-on-machine-prerelease/10219/26

This began happening with the flyctl version update from 0.0.473 -> v0.0.474.

@kdevan
Copy link
Author

kdevan commented Mar 2, 2023

This is working now after waiting just a bit!

@kdevan kdevan closed this as completed Mar 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant