Terraform provider reference / data sources / object_storage
fiberax_object_storage (Data Source)
The object storage of the project: where to point your S3 tools, the reservation and its bounds, and the buckets with what they hold now.
For the aws provider use endpoint with path-style addressing (s3_use_path_style = true): bucket names are not served as subdomains. Needs the token of an object storage project.
Example Usage
data "fiberax_object_storage" "this" {
provider = fiberax.storage
}
# The endpoint and region for S3 tools. To manage objects with the aws provider, keep them in a
# second configuration and give it the key through the environment (AWS_ACCESS_KEY_ID,
# AWS_SECRET_ACCESS_KEY): a key created in the same configuration is unknown when the aws provider
# is configured - see the guide "Object storage (S3)", section 5. Path-style addressing is required.
output "s3_endpoint" {
value = data.fiberax_object_storage.this.endpoint
}
output "s3_region" {
value = data.fiberax_object_storage.this.region
}
Schema
Read-Only
buckets(Attributes List) Buckets of the project. Size and object count are as of the read, not over time. (see below for nested schema)endpoint(String) Address of the S3 API to give your S3 tools.max_buckets(Number) Most buckets the project can hold.region(String) Region name to give your S3 tools.reservation_limits(Attributes) Bounds of an order, in terabytes: a reservation is ordered frommin_tbtomax_tbin steps ofstep_tb. Null when the storage does not count its reservation in terabytes. (see below for nested schema)reserved_at_max(Boolean) True when the reservation is already the largest that can be ordered.reserved_bytes(Number) Reserved storage in bytes - the exact value behindreserved_tb.reserved_tb(Number) Reserved storage in whole terabytes (1 TB = 2^40 bytes); 0 when nothing is reserved yet.
Nested Schema for buckets
Read-Only:
created_at(String) When the bucket was created, RFC 3339.name(String) Bucket name.object_lock(Boolean) Whether S3 Object Lock is on.objects(Number) Objects stored now.size_bytes(Number) Bytes stored now.versioning(String) S3 versioning:off,enabledorsuspended.
Nested Schema for reservation_limits
Read-Only:
max_tb(Number) Largest reservation that can be ordered.min_tb(Number) Smallest reservation.step_tb(Number) Step of the reservation.
Generated from the provider schema for version 0.11.0. How to install the provider: Terraform provider.