terraform-provider-stackitp.../stackit/internal/services/iaas/testdata/resource-volume-max.tf
Ruben Hönle 53a3697850
feat(iaas): support for v2 API (#1070)
relates to STACKITTPR-313
2025-12-17 15:40:46 +01:00

36 lines
No EOL
931 B
HCL

variable "project_id" {}
variable "availability_zone" {}
variable "name" {}
variable "size" {}
variable "description" {}
variable "performance_class" {}
variable "label" {}
resource "stackit_volume" "volume_size" {
project_id = var.project_id
availability_zone = var.availability_zone
name = var.name
size = var.size
description = var.description
performance_class = var.performance_class
labels = {
"acc-test" : var.label
}
}
resource "stackit_volume" "volume_source" {
project_id = var.project_id
availability_zone = var.availability_zone
name = var.name
description = var.description
# TODO: keep commented until IaaS API bug is resolved
#performance_class = var.performance_class
size = var.size
source = {
id = stackit_volume.volume_size.volume_id
type = "volume"
}
labels = {
"acc-test" : var.label
}
}