aminueza / terraform-provider-minio

Terraform provider for managing MinIO S3 buckets and IAM Users.
https://registry.terraform.io/providers/aminueza/minio
GNU Affero General Public License v3.0
233 stars 69 forks source link

No Documentation for the `DeleteMarker` value of ilm policy's `expiration` field #557

Closed michaelruigrok closed 5 months ago

michaelruigrok commented 7 months ago

Prerequisites

Description

The ilm policy resource may have its expiration field set to "DeleteMarker", however this is not documented in the Terraform docs

Steps to Reproduce

  1. Go to https://registry.terraform.io/providers/aminueza/minio/latest/docs/resources/ilm_policy#schema
  2. Try and learn how to expire delete markers
  3. Fail
michaelruigrok commented 7 months ago

As well as the schema documentation I've provided, it would be good to have a proper example, however I wasn't sure how to add supplemental examples to the existing format.

resource "minio_s3_bucket" "bucket" {
  bucket = "bucket"
}

resource "minio_ilm_policy" "bucket-lifecycle-rules" {
  bucket = minio_s3_bucket.bucket.bucket

  rule {
    id         = "expire-7d"
    expiration = "DeleteMarker"
    noncurrent_version_expiration_days = 40
  }
}