You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the terraform resource "ovh_dedicated_nasha_partition_snapshot" are correctly applied on the partition, but the provider is creating then again at every apply
Terraform Version
Terraform v1.5.7
OVH Terraform Provider Version
provider registry.terraform.io/ovh/ovh v0.33.0
Affected Resource(s)
ovh_dedicated_nasha_partition_snapshot
Terraform Configuration Files
# Copy-paste your Terraform configurations here - for large Terraform configs,# please use a service like Dropbox and share a link to the ZIP file. For# security, you can also encrypt the files using our GPG public key.terraform {
required_providers {
ovh={
source ="ovh/ovh"
version ="0.33.0"
}
}
}
snapshot_loop=distinct(flatten([
forpartitioninvar.partitions: [
forfrequencyinpartition.snapshots: {
type = frequencyname = partition.name
}
]
]))
}
resource"ovh_dedicated_nasha_partition""partition" {
for_each=var.partitionsservice_name=var.service_namename=each.value.namesize=each.value.sizeprotocol=each.value.protocol
}
resource"ovh_dedicated_nasha_partition_snapshot""snapshot-policy" {
for_each={ forsnapshotinlocal.snapshot_loop:"${snapshot.name}-${snapshot.type}"=>snapshot }
service_name=var.service_namepartition_name=each.value.nametype=each.value.typedepends_on=[
ovh_dedicated_nasha_partition.partition
]
}
Describe the bug
the terraform resource "ovh_dedicated_nasha_partition_snapshot" are correctly applied on the partition, but the provider is creating then again at every apply
Terraform Version
Terraform v1.5.7
OVH Terraform Provider Version
provider registry.terraform.io/ovh/ovh v0.33.0
Affected Resource(s)
ovh_dedicated_nasha_partition_snapshot
Terraform Configuration Files
Debug Output
Please provider a link to a GitHub Gist containing the complete debug output: https://www.terraform.io/docs/internals/debugging.html. Please do NOT paste the debug output in the issue; just paste a link to the Gist.
Panic Output
If Terraform produced a panic, please provide a link to a GitHub Gist containing the output of the
crash.log
.Expected Behavior
What should have happened?
Snapshot configuration should be applied only once or when changed
Actual Behavior
What actually happened?
Snapshot configuration is applied again and again at every tf apply
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
References
Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: