Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ohemelaar opened this issue Mar 27, 2024 · 0 comments · Fixed by #2513
Assignees
Labels
bug object Object storage issues, bugs and feature requests priority:highest Bugs filled by customers, security issues

Comments

@ohemelaar
Copy link
Contributor

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

@yfodil yfodil added bug object Object storage issues, bugs and feature requests labels Mar 27, 2024
@Mia-Cross Mia-Cross added the priority:highest Bugs filled by customers, security issues label Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug object Object storage issues, bugs and feature requests priority:highest Bugs filled by customers, security issues
Projects
None yet
3 participants