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

[Feature Request]: Assign block storage to instance #360

Open
various89 opened this issue May 28, 2024 · 4 comments
Open

[Feature Request]: Assign block storage to instance #360

various89 opened this issue May 28, 2024 · 4 comments

Comments

@various89
Copy link

What feature would you like to have in the provider?

It would be nice to have the capability to attach the created volume to a specific instance or server.

e.g.

resource "exoscale_block_storage_volume" "example" {
  name  = var.name
  size  = var.size
  zone  = var.zone
  server_id = var.server_id
}

other providers for reference:

https://registry.terraform.io/providers/hetznercloud/hcloud/latest/docs/resources/volume#server_id
https://registry.terraform.io/providers/ionos-cloud/ionoscloud/latest/docs/resources/volume#server_id

@sauterp
Copy link
Member

sauterp commented May 28, 2024

Hi,
thanks for the request. We do provide this functionality in the exoscale_compute_instance resource https://registry.terraform.io/providers/exoscale/exoscale/latest/docs/resources/compute_instance#block_storage_volume_ids

I'm closing this, but feel free to reply if I misunderstood and we'll reopen this.

@sauterp sauterp closed this as completed May 28, 2024
@various89
Copy link
Author

Hi,

thanks I'm aware of the functionality provided in the exoscale_compute_instance.
It would be beneficial to have this functionality in both directions, instance -> volume and volume -> instance.

Thinking of circular dependencies, at least in our project, are harder to resolve if this functionality is only implemented in one direction.

@sauterp
Copy link
Member

sauterp commented May 28, 2024

I'm not sure I understand, doesn't the fact that the functionality is not implemented in both directions prevent circular dependencies?

Perhaps you can share more details about your use case to make this clearer?

@sauterp sauterp reopened this May 28, 2024
@greut
Copy link
Contributor

greut commented May 28, 2024

How does Terraform handle moving a volume from one instance to another without that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants