ibm_is_volume

Provides a volume resource. This allows volume to be created, updated, and cancelled.

Example Usage

In the following example, you can create a volume:

resource "ibm_is_volume" "testacc_volume" {
  name     = "test_volume"
  profile  = "10iops-tier"
  zone     = "us-south-1"
  iops     = 10000
  capacity = 100
}

Timeouts

ibm_is_volume provides the following Timeouts configuration options:

  • create - (Default 60 minutes) Used for Creating Instance.
  • delete - (Default 60 minutes) Used for Deleting Instance.

Argument Reference

The following arguments are supported:

  • name - (Required, string) The user-defined name for this volume.
  • profile - (Required, string) The profile to use for this volume.
  • zone - (Required, string) The location of the volume.
  • iops - (Optional, int) The bandwidth for the volume.
  • capacity - (Optional, int) The capacity of the volume in gigabytes. This defaults to 100.
  • encryption_key - (Optional, string) The key to use for encrypting this volume.
  • resource_group - (Optional, string) The resource group for this volume.

Attribute Reference

The following attributes are exported:

  • id - The unique identifier of the volume.
  • status - The status of volume.
  • crn - The CRN for the volume.