Ensure Alibaba Cloud OSS bucket has Transfer Acceleration disabled

Error: Alibaba Cloud OSS bucket has Transfer Acceleration disabled

Bridgecrew Policy ID: BC_ALI_GENERAL_1
Checkov Check ID: CKV_ALI_11
Severity: LOW

Alibaba Cloud OSS bucket has Transfer Acceleration disabled

Description

Transfer Acceleration is a feature in Alibaba Cloud OSS (Object Storage Service) that allows you to transfer large files over the internet more quickly by using optimized network paths. While Transfer Acceleration can be useful for improving the speed of file transfers, it can also increase the cost of data transfer.

If you do not need the faster transfer speeds provided by Transfer Acceleration, or if you are trying to minimize costs, you may want to ensure that Transfer Acceleration is disabled for your OSS bucket. Disabling Transfer Acceleration can help to reduce the cost of data transfer, as you will only be charged for standard data transfer rates rather than the higher rates associated with Transfer Acceleration.

Fix - Buildtime

Terraform

resource "alicloud_oss_bucket" "pass" {
  bucket = "bucket_name"

  transfer_acceleration {
    enabled = true
  }
}