alicloud_oss_bucket_objects

This data source provides the objects of an OSS bucket.

Example Usage

data "alicloud_oss_bucket_objects" "bucket_objects_ds" {
  bucket_name = "sample_bucket"
  key_regex   = "sample/sample_object.txt"
}

output "first_object_key" {
  value = "${data.alicloud_oss_bucket_objects.bucket_objects_ds.objects.0.key}"
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported in addition to the arguments listed above: