This module is used to create a Block Storage (volume)
data "ibm_resource_group" "resource_group" {
name = (var.resource_group != null ? var.resource_group : "default")
}
module "volume" {
source = "terraform-ibm-modules/vpc/ibm//modules/volume"
name = var.name
resource_group_id = data.ibm_resource_group.resource_group.id
location = var.location
volume_profile = var.volume_profile
iops = var.iops
size = var.size
encryption = var.encryption
tags = var.tags
}
Name | Version |
---|---|
terraform | >= 1.3.0 |
ibm | >= 1.64.0, <2.0.0 |
No modules.
Name | Type |
---|---|
ibm_is_volume.volume | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
encryption | The encryption key to use for encrypting this volume | string |
null |
no |
iops | The total i/o operations per sec for the storage. This value is required for custom volume_profile only. | number |
null |
no |
location | Volume Zone | string |
n/a | yes |
name | Name of the Volume | string |
n/a | yes |
resource_group_id | Resource group ID | string |
null |
no |
size | The capacity of the volume in gigabytes | number |
null |
no |
tags | List of Tags for the volume | list(string) |
null |
no |
volume_profile | The profile to use for this volume | string |
n/a | yes |
Name | Description |
---|---|
volume_id | The ID of the volume |