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

deleteVolume no longer supported by GraphQL API #244

Open
mootari opened this issue Sep 6, 2023 · 3 comments
Open

deleteVolume no longer supported by GraphQL API #244

mootari opened this issue Sep 6, 2023 · 3 comments

Comments

@mootari
Copy link

mootari commented Sep 6, 2023

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:

_, err := graphql.DeleteVolume(ctx, *r.client, data.Id.ValueString())

@mootari
Copy link
Author

mootari commented Sep 7, 2023

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

@matifali
Copy link

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

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

3 participants