Skip to content

Latest commit

 

History

History
62 lines (45 loc) · 1.64 KB

bucket.md

File metadata and controls

62 lines (45 loc) · 1.64 KB
page_title cozystack_bucket Data Source - cozystack
subcategory
description Read an existing Cozystack bucket by name and namespace.

cozystack_bucket (Data Source)

Read an existing Cozystack bucket by name and namespace.

Example Usage

data "cozystack_bucket" "assets" {
  name      = "assets"
  namespace = "tenant-root"
}

output "assets_ready" {
  value = data.cozystack_bucket.assets.ready
}

Schema

Required

  • name (String) Bucket name.
  • namespace (String) Tenant namespace.

Read-Only

  • chart_version (String) Deployed chart version.
  • credentials (Attributes Map, Sensitive) S3 credentials per user. (see below for nested schema)
  • id (String) Synthetic identifier namespace/name.
  • locking (Boolean) Whether object lock is enabled.
  • ready (Boolean) Whether the bucket's Ready condition is true.
  • storage_pool (String) BucketClass storage pool name.
  • uid (String) Server-assigned object UID (metadata.uid).
  • users (Attributes Map) Bucket users keyed by user name. (see below for nested schema)

Nested Schema for credentials

Read-Only:

  • access_key (String) S3 access key ID.
  • bucket_name (String) Backing bucket name.
  • endpoint (String) S3 endpoint URL.
  • region (String) S3 region.
  • secret_key (String) S3 secret access key.

Nested Schema for users

Read-Only:

  • readonly (Boolean) Whether the user has read-only access.