Skip to content

[BUG] Change name attribute of ovh_cloud_project_storage #1139

@drademacher-senacor

Description

@drademacher-senacor

Describe the bug

Changing the name of an existing s3 bucket lead to an error in terraform.

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 = "XXX"
  region_name = "EU-WEST-PAR"
  name = "danny-test-one"
}

Steps to Reproduce

You need to do 2 terraform apply steps:

  1. Create a ovh_cloud_project_storage resource
  2. Change the name of the storage to any other name

Panic Output

│ Error: Provider produced inconsistent result after apply

│ When applying changes to ovh_cloud_project_storage.test, provider "provider["registry.terraform.io/ovh/ovh"]" produced an unexpected new value: .name: was
│ cty.StringVal("danny-test-two"), but now cty.StringVal("danny-test-one").

│ This is a bug in the provider, which should be reported in the provider's own issue tracker.

Expected Behavior

There should be no error. Probably delete and recreate the bucket with the new name.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions