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

Resource Object Storage: Setting up object lock

Open Monitob opened this issue 3 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

Description

The object lock API feature allows users to lock objects and prevent them from being deleted or overwritten. Objects can be put on lock for a specific amount of time or indefinitely. The lock period is defined by the user.

New or Affected Resource(s)

  • scaleway_object_bucke_lock_configuration

Potential Terraform Configuration

resource "scaleway_object_bucket" "example" {
  name = "mybucket"

  object_lock_enabled = true
}

resource "scaleway_object_bucke_lock_configuration" "example" {
  bucket = scaleway_object_bucket.example.name

  rule {
    default_retention {
      mode = "COMPLIANCE"
      days = 5
    }
  }
}

References

https://www.scaleway.com/en/docs/storage/object/api-cli/object-lock/

  • #0000

Monitob avatar Sep 14 '22 15:09 Monitob