» scaleway_volume_attachment

DEPRECATED: This resource is deprecated and will be removed in v2.0+. Please use scaleway_instance_server.additional_volumes instead.

This allows volumes to be attached to servers.

» Example Usage

resource "scaleway_server" "test" {
  name  = "test"
  image = "aecaed73-51a5-4439-a127-6d8229847145"
  type  = "C2S"
}

resource "scaleway_volume" "test" {
  name       = "test"
  size_in_gb = 20
  type       = "l_ssd"
}

resource "scaleway_volume_attachment" "test" {
  server = scaleway_server.test.id
  volume = scaleway_volume.test.id
}

» Argument Reference

The following arguments are supported:

  • server - (Required) id of the server
  • volume - (Required) id of the volume to be attached

» Attributes Reference

The following attributes are exported:

  • id - id of the new resource