You can use the for_each meta-argument to create multiple volumes.
Example
To create 3 different volumes using terraform_for_each using the following configuration:
resource "powermax_volume" "test" {
for_each = toset(["vol_1", "vol_2", "vol_3"])
vol_name = each.key
size = 2.45
sg_name = "terraform_sg"
cap_unit = "GB"
}
You can use the count meta-argument to create multiple volumes.
Example
To create 3 different volumes using the following configuration:
resource "powermax_volume" "test" {
count = 3
vol_name = "terraform_volume-${count.index}"
size = 2.45
sg_name = "terraform_sg"
cap_unit = "GB"
}