github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/avd_docs/digitalocean/spaces/AVD-DIG-0007/Terraform.md (about) 1 2 Enable versioning to protect against accidental or malicious removal or modification 3 4 ```hcl 5 resource "digitalocean_spaces_bucket" "good_example" { 6 name = "foobar" 7 region = "nyc3" 8 9 versioning { 10 enabled = true 11 } 12 } 13 14 ``` 15 16 #### Remediation Links 17 - https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs/resources/spaces_bucket#versioning 18