frostmoln_bucket (Resource)
Manages an object storage bucket in the Frostmoln platform.
Example Usage
terraform
resource "frostmoln_bucket" "example" {
name = "my-data-bucket"
region = "sweden"
storage_class = "STANDARD"
versioning = "enabled"
tags = {
environment = "production"
team = "platform"
}
}Schema
Required
name(String) The name of the bucket. Also serves as the unique identifier.
Optional
region(String) The region where the bucket is located.storage_class(String) The default storage class for objects in the bucket. One ofSTANDARD,STANDARD_IA,REDUCED_REDUNDANCY,GLACIER— the values are case-sensitive. Defaults server-side toSTANDARD.tags(Map of String) Tags associated with the bucket.versioning(String) The versioning state of the bucket:enabledorsuspended. A bucket startsdisabled, and S3 versioning cannot be turned back off once enabled — only suspended — sodisabledis not settable: the server would answer with the unchanged state and the apply would fail on the mismatch.
Read-Only
created_at(String) The timestamp when the bucket was created.object_count(Number) The number of objects in the bucket.size_bytes(Number) The total size of all objects in the bucket, in bytes.