Skip to content

[BUG] Delete all terraform managed resources of ovh_cloud_project_storage #1141

@drademacher-senacor

Description

@drademacher-senacor

Describe the bug

Destroy a resource ovh_cloud_project_storage which has a a replication resource does not delete all previously created resources properly.

Terraform Version

Terraform v1.13.4
on darwin_arm64

  • provider registry.terraform.io/ovh/ovh v2.9.0

Affected Resource(s)

Please list the resources as a list, for example:

  • ovh_cloud_project_storage

Terraform Configuration Files

resource "ovh_cloud_project_storage" "test" {
  service_name = var.ovh_project_service_name
  region_name  = "EU-WEST-PAR"
  name         = "the-name-of-the-bucket"

  versioning = {
    status = "enabled"
  }
  replication = {
    rules = [{
      delete_marker_replication = "enabled"
      destination = {
        name          = "the-replica-of-the-bucket"
        region        = "DE"
        storage_class = "STANDARD_IA"
      }
      id       = "1"
      priority = 1
      status   = "enabled"
    }]
  }
}

Steps to Reproduce

Create this resource with terraform apply and delete it afterwards with terraform destroy.

Expected Behavior

The OVH UI shows me the both created resources by terraform are also deleted by terraform.

Actual Behavior

The OVH UI shows me that the resource with name "the-replica-of-the-bucket" still exists.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions