This product is not supported for your selected Datadog site. ().

Metadata

Id: 8f98334a-99aa-4d85-b72a-1399ca010413

Cloud Provider: Alicloud

Platform: Terraform

Severity: Low

Category: Availability

Learn More

Description

An OSS bucket should have transfer_acceleration.enabled set to true. This rule inspects alicloud_oss_bucket resources and reports when the transfer_acceleration block is missing or when transfer_acceleration.enabled is false. It recommends adding a transfer_acceleration block with enabled = true or updating the existing value to true.

Compliant Code Examples

resource "alicloud_oss_bucket" "bucket-accelerate3" {
  bucket = "bucket_name"

  transfer_acceleration {
    enabled = true
  }
}

Non-Compliant Code Examples

resource "alicloud_oss_bucket" "bucket-accelerate2" {
  bucket = "bucket_name"
}
resource "alicloud_oss_bucket" "bucket-accelerate" {
  bucket = "bucket_name"

  transfer_acceleration {
    enabled = false
  }
}