frostmoln_bucket (Resource)
Manages an object storage bucket in the Frostmoln platform.
Authoritative scope — who owns what on this resource, declared in internal/scopedecl and machine-checked against the schema.
Enacted and reconciled — every configurable attribute not listed below: the platform applies it, and a refresh reads the truth back.
Create-immutable — name: the bucket's name IS its identity on the wire — buckets are addressed by name.
Create-immutable — region, storage_class: the platform pins it at create; there is no in-place migration.
Observed, not enacted — tags_all: keys set outside Terraform — in the portal, by the fm CLI, or stamped by the platform — appear only here and are kept on every apply, never removed.
Example Usage
terraform
resource "frostmoln_bucket" "example" {
name = "my-data-bucket"
region = "sweden"
storage_class = "STANDARD"
versioning = "enabled"
tags = {
environment = "production"
team = "platform"
}
}
# A bucket whose objects anyone can download by URL, without credentials:
# every object in it, including ones uploaded later. Listing the bucket still
# requires credentials. Unlike the AWS S3 canned ACL of the same name, this
# does not allow anonymous listing.
resource "frostmoln_bucket" "public_assets" {
name = "my-public-assets"
acl = "public-read"
}Schema
Required
name(String) The name of the bucket. Also serves as the unique identifier.
Optional
acl(String) Anonymous access to the bucket's objects:privateorpublic-read.private(the platform default for a new bucket): objects are reachable only with S3 credentials or a presigned URL.public-read: anyone on the internet can download ANY object in the bucket by its URL, without credentials — every object already in the bucket and every object uploaded later — while listing the bucket's contents still requires credentials. This is NOT the AWS S3 canned ACL of the same name, which grants anonymous listing of the bucket and leaves object downloads to per-object ACLs. Changed in place, without replacing the bucket. When omitted, Terraform does not manage it: a new bucket is createdprivate, and an existing bucket keeps whatever access it has.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. Merged with the provider'sdefault_tagson every write (a key set here wins). Holds only the keys this configuration sets; the full set is intags_all.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.tags_all(Map of String) Every tag the platform holds on this resource: the provider'sdefault_tags, this resource's owntags(which win on a shared key), and any key set outside Terraform — in the portal, by the fm CLI, or stamped by the platform. Keys set outside Terraform appear only here and are kept on every apply, never removed.