Skip to content

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 of STANDARD, STANDARD_IA, REDUCED_REDUNDANCY, GLACIER — the values are case-sensitive. Defaults server-side to STANDARD.
  • tags (Map of String) Tags associated with the bucket.
  • versioning (String) The versioning state of the bucket: enabled or suspended. A bucket starts disabled, and S3 versioning cannot be turned back off once enabled — only suspended — so disabled is 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.