» vultr_block_storage

Provides a Vultr Block Storage resource. This can be used to create, read, modify, and delete Block Storage.

» Example Usage

Create a new Block Storage

resource "vultr_block_storage" "my_blockstorage" {
    size_gb = 10
    region_id = 1
}

» Argument Reference

The following arguments are supported:

  • size_gb - (Required) The size of the given block storage.
  • region_id - (Required) Region in which this block storage will reside in. (Currently only NJ/NY supported region_id 1)
  • attached_id - (Optional) VPS ID that you want to have this block storage attached to.
  • label - (Optional) Label that is given to your block storage.
  • live - (Optional) Live will allow attachment of the volume to an instance without a restart. Values are yes or no default is no.

» Attributes Reference

The following attributes are exported:

  • size_gb - The size of the given block storage.
  • region_id - Region in which this block storage will reside in. (Currently only NJ/NY supported region_id 1)
  • attached_id - VPS ID that is attached to this block storage.
  • label - Label that is given to your block storage.
  • cost_per_month - The monthly cost of this block storage.
  • date_created - The date this block storage was created.
  • status - Current status of your block storage.
  • id - The ID for this block storage.
  • live - Flag which will determine of a volume should be attached with a restart or not.

» Import

Block Storage can be imported using the Block Storage SUBID, e.g.

terraform import vultr_block_storage.my_blockstorage 25058682