| page_title | cozystack_bucket Data Source - cozystack |
|---|---|
| subcategory | |
| description | Read an existing Cozystack bucket by name and namespace. |
Read an existing Cozystack bucket by name and namespace.
data "cozystack_bucket" "assets" {
name = "assets"
namespace = "tenant-root"
}
output "assets_ready" {
value = data.cozystack_bucket.assets.ready
}name(String) Bucket name.namespace(String) Tenant namespace.
chart_version(String) Deployed chart version.credentials(Attributes Map, Sensitive) S3 credentials per user. (see below for nested schema)id(String) Synthetic identifiernamespace/name.locking(Boolean) Whether object lock is enabled.ready(Boolean) Whether the bucket'sReadycondition 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)
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.
Read-Only:
readonly(Boolean) Whether the user has read-only access.