-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Labels
Description
Description
Creating a Volume from a Backup fails.
Steps to reproduce
resource "stackit_volume" "volume" {
project_id = var.STACKIT_PROJECT_ID
name = "volume"
availability_zone = var.zone
performance_class = "storage_premium_perf6"
size = 4
labels = {
"src_backup_id" = "" // -> this label is getting introduced after creation this is why it fails
}
source = {
type = "backup"
id = "<backupId>"
}
}- Run
terraform applyto create a volume from a backup
Actual behavior
stackit_volume.encrypted: Still creating... [20s elapsed]
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to stackit_volume.encrypted, provider
│ "provider[\"registry.terraform.io/stackitcloud/stackit\"]" produced an unexpected new value: .labels: was
│ null, but now
│ cty.MapVal(map[string]cty.Value{"src_backup_id":cty.StringVal("<backupId>")}).
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.Environment
- OS: macOS 15
- Terraform version (see
terraform --version):v1.5.7 - Version of the STACKIT Terraform provider:
v0.77.0