fly-apps / terraform-provider-fly

Terraform provider for the Fly.io API
BSD 3-Clause "New" or "Revised" License
114 stars 38 forks source link

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

Closed kdevan closed 1 year ago

kdevan commented 1 year ago

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 commented 1 year ago

This is working now after waiting just a bit!