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

deleteVolume no longer supported by GraphQL API #244

Open mootari opened 12 months ago

mootari commented 12 months ago

We got the following error during a destroy run:

│ Error: Delete volume failed
│ 
│ input:3: deleteVolume The GraphQL API no longer supports volume operations,
│ please use the machines API instead (or update your flyctl version):
│ https://docs.machines.dev/swagger/index.html#/Volumes
│ 

Resource API call: https://github.com/fly-apps/terraform-provider-fly/blob/195a1a6a4a59a393140a7c070c2a909284f25d56/internal/provider/volume_resource.go#L166

kylemclaren commented 12 months ago

https://community.fly.io/t/fresh-produce-volumes-endpoints-in-machines-api/14408

mootari commented 12 months ago

Would it be feasible to use flyctl as a library instead of performing the API calls directly?

matifali commented 11 months ago

Also getting this

Error: Failed to create volume
on main.tf line 26, in resource "fly_volume" "home-volume":
  26: resource "fly_volume" "home-volume" {
input:3: createVolume The GraphQL API no longer supports volume operations, please use the machines API instead (or update your flyctl version): https://docs.machines.dev/swagger/index.html#/Volumes

This breaks our existing starter template on Coder