OSS Bucket Transfer Acceleration Disabled

  • Query id: 8f98334a-99aa-4d85-b72a-1399ca010413
  • Query name: OSS Bucket Transfer Acceleration Disabled
  • Platform: Terraform
  • Severity: Low
  • Category: Availability
  • URL: Github

Description

OSS Bucket should have transfer acceleration enabled
Documentation

Code samples

Code samples with security vulnerabilities

Positive test num. 1 - tf file
resource "alicloud_oss_bucket" "bucket-accelerate" {
  bucket = "bucket_name"

  transfer_acceleration {
    enabled = false
  }
}
Positive test num. 2 - tf file
resource "alicloud_oss_bucket" "bucket-accelerate2" {
  bucket = "bucket_name"
}

Code samples without security vulnerabilities

Negative test num. 1 - tf file
resource "alicloud_oss_bucket" "bucket-accelerate3" {
  bucket = "bucket_name"

  transfer_acceleration {
    enabled = true
  }
}