aliyun / terraform-provider-alicloud

Terraform AliCloud provider
https://www.terraform.io/docs/providers/alicloud/
Mozilla Public License 2.0
582 stars 548 forks source link

Unable to create lifecycle rules to cleanup old parts #2156

Open jcarrothers-sap opened 4 years ago

jcarrothers-sap commented 4 years ago

It should be possible to configure lifecycle rules with the alicloud_oss_bucket that delete abandoned upload parts.

ljluestc commented 3 months ago
resource "alicloud_oss_bucket" "example_bucket" {
  bucket = "example-bucket"
  acl    = "private"

  lifecycle_rule {
    enabled = true

    expiration {
      days = 7
    }

    abort_incomplete_multipart_upload {
      days_after_initiation = 7
    }
  }
}