terraform-provider-scaleway icon indicating copy to clipboard operation
terraform-provider-scaleway copied to clipboard

Error: couldn't read bucket objects: SerializationError: failed to decode REST XML response

Open mrohlof-protofy opened this issue 1 year ago • 1 comments
trafficstars

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

1.8.3

Affected Resource(s)

  • scaleway_object_bucket

Terraform Configuration Files

resource "scaleway_object_bucket" "img_s3_bucket" {
  name   = "images-${terraform.workspace}"
  acl    = "private"
  region = "nl-ams"
}

Debug Output

https://gist.github.com/mrohlof-protofy/64a3b9571f39564304274e5894558f38

Expected Behavior

I already have a bucket. I run terraform plan. I want the plan to tell me no resources have to be changed.

Actual Behavior

The plan fails with above message. Root cause could be a request against https://images-stage.s3.nl-ams.scw.cloud/?lifecycle= which in turn produces a NoSuchLifecycleConfiguration error. See more detail in gist.

mrohlof-protofy avatar Sep 10 '24 18:09 mrohlof-protofy

Hello,

We are currently working on an issue with the debug flag and object. Could you please provide the error message you're seeing without the debug flag enabled?

Thank you very much.

Laure-di avatar Sep 17 '24 09:09 Laure-di

Hello,

Just following up—do you have any updates on this issue? Have you tried updating your Terraform provider to the latest version?

I attempted to reproduce the issue on my end but was not able to. Here are the steps I followed:

  1. Manually created an object bucket
  2. Used the same Terraform configuration
  3. Ran terraform init
  4. Created a new workspace with terraform workspace new stage
  5. Import the resource
  6. Ran terraform plan Everything worked as expected, and no error occurred.

Since I couldn't reproduce the issue, I'm going to close this for now. Feel free to reopen it if the problem persists or if you have more information to share.

Laure-di avatar Jun 03 '25 13:06 Laure-di