scaleway / terraform-provider-scaleway

Terraform Scaleway provider

Home Page:https://www.terraform.io/docs/providers/scaleway/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Creating a scaleway_object_bucket_acl to set to public and then removing it doesn't revert back to private

ohemelaar opened this issue Β· comments

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

Terraform v1.5.7
on linux_amd64

Affected Resource(s)

  • scaleway_object_bucket
  • scaleway_object_bucket_acl

Terraform Configuration Files

# first apply
resource "scaleway_object_bucket" "test_bucket_acl" {
  name = "test-bucket-acl-uniquename"
}
resource "scaleway_object_bucket_acl" "test_bucket_acl" {
  bucket = scaleway_object_bucket.test_bucket_acl.id
  acl    = "public-read"
}

# then apply
resource "scaleway_object_bucket" "test_bucket_acl" {
  name = "test-bucket-acl-uniquename"
}

Debug Output

https://gist.github.com/ohemelaar/236bea7efdc24b81fd6dd89a9cc12d4a

Expected Behavior

The bucket acl should revert to the default value of private like when it's created without an ACL.

Actual Behavior

The bucket acl retains its public-read ACL (seen in scaleway web console), making the terraform configuration not idempotent.

Steps to Reproduce

  1. terraform apply the first paragraph of HCL

  2. terraform apply the second paragraph of HCL