MEDIUM
Source
Trivy
ID
AVD-DIG-0009

Force destroy is enabled on Spaces bucket which is dangerous

Enabling force destroy on a Spaces bucket means that the bucket can be deleted without the additional check that it is empty. This risks important data being accidentally deleted by a bucket removal process.

Impact

Accidental deletion of bucket objects

Follow the appropriate remediation steps below to resolve the issue.

Don’t use force destroy on bucket configuration

1
2
3
4
5
 resource "digitalocean_spaces_bucket" "good_example" {
   name   = "foobar"
   region = "nyc3"
 }