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

importing an object bucket doesn't import acl

Open vincentfretin opened this issue 5 years ago • 0 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

  • Terraform v0.13.3
  • provider.scaleway v1.16.0

Affected Resource(s)

  • scaleway_object_bucket

Terraform Configuration Files

resource "scaleway_object_bucket" "terraform-state-bucket" {                       
  name = "myproject-terraform-state"                                                
  acl = "private"                                                                  
}

Expected Behavior

importing an object bucket should import the acl = "private"

Actual Behavior

acl = "null" instead of acl = "private"

Steps to Reproduce

  1. terraform apply
  2. mv terraform.tfstate terraform.tfstate.before
  3. terraform import scaleway_object_bucket.terraform-state-bucket fr-par/myproject-terraform-state "acl" = "null" instead of "acl" = "private"
  4. terraform apply will proceed with changes.

If I modify by hand terraform.tfstate to put "acl": "private", then terraform apply won't do any change.

vincentfretin avatar Oct 06 '20 13:10 vincentfretin