github.com/aquasecurity/trivy-iac@v0.8.1-0.20240127024015-3d8e412cf0ab/avd_docs/digitalocean/spaces/AVD-DIG-0006/Terraform.md (about)

     1  
     2  Apply a more restrictive ACL
     3  
     4  ```hcl
     5   resource "digitalocean_spaces_bucket" "good_example" {
     6     name   = "private_space"
     7     region = "nyc3"
     8     acl    = "private"
     9   }
    10     
    11   resource "digitalocean_spaces_bucket_object" "index" {
    12     region       = digitalocean_spaces_bucket.good_example.region
    13     bucket       = digitalocean_spaces_bucket.good_example.name
    14     key          = "index.html"
    15     content      = "<html><body><p>This page is empty.</p></body></html>"
    16     content_type = "text/html"
    17   }
    18   
    19  ```
    20  
    21  #### Remediation Links
    22   - https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs/resources/spaces_bucket#acl
    23  
    24   - https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs/resources/spaces_bucket_object#acl
    25