Skip to content

Object Storage ​

Object storage provides S3-compatible buckets for files, backups, media, and static assets. Objects are stored exclusively in the EU/EEA, and are reachable over the S3 API at https://s3.sweden.frostmoln.cloud (region sweden).

Create a bucket ​

Under Storage → Object Storage, create a bucket with a globally-unique name (3–63 chars, lowercase letters, numbers, hyphens). You can enable versioning and pick a storage class at creation.

bash
fm storage bucket create my-bucket --region sweden --versioning
fm storage bucket list
fm storage bucket delete my-bucket            # --force to delete a non-empty bucket
hcl
resource "frostmoln_bucket" "assets" {
  name       = "my-bucket"
  versioning = "enabled"
}

Public access ​

A new bucket is private: its objects are reachable only with S3 credentials or a presigned URL. Make it public to let anyone download an object by its URL, without signing in. A public object's URL is https://s3.sweden.frostmoln.cloud/my-bucket/path/to/object.

In the portal, open the bucket, go to Settings → Public Access and choose Make Public. From the CLI or Terraform:

bash
fm storage bucket update my-bucket --acl public-read   # asks to confirm; --yes skips
fm storage bucket update my-bucket --acl private
fm storage bucket create my-assets --acl public-read
hcl
resource "frostmoln_bucket" "assets" {
  name = "my-assets"
  acl  = "public-read"
}

What public means:

  • Every object can be downloaded by its URL, including objects you upload later.
  • The bucket cannot be listed without credentials. That does not hide an object whose name is easy to guess, so keep anything sensitive in a private bucket.
  • Uploading, changing and deleting still require credentials.
  • This differs from the AWS canned ACL public-read, which allows listing a bucket but not downloading its objects.
  • Browsers show images, video and PDFs from a public bucket, but a page served from it cannot run scripts or submit forms.

Making the bucket private again takes effect immediately. If you remove acl from your Terraform configuration, the bucket keeps its current access; set acl = "private" to make it private.

S3 access credentials ​

Object storage uses S3 access keys scoped to your tenant. Create a credential and you receive an Access Key ID and a Secret Key — the secret is shown once, so save it immediately.

bash
fm storage s3-credential create \
  --name app \
  --allowed-bucket my-bucket \
  --allowed-action s3:GetObject --allowed-action s3:PutObject \
  --ip 203.0.113.0/24

fm storage s3-credential list
fm storage s3-credential rotate <access-key-id>   # revokes the old key immediately
fm storage s3-credential delete <access-key-id>

Each credential can be scoped — and the limits are enforced server-side, not advisory:

  • Allowed buckets — restrict to specific buckets (empty = all your buckets).
  • Allowed actions — restrict to specific S3 actions (e.g. s3:GetObject, s3:PutObject, s3:ListBucket; empty = all).
  • Source IPs — restrict use to given CIDR ranges.
  • Expiry — optional automatic expiry.

Save the secret key

The Secret Key is returned only at creation (and on rotate). Store it in Secrets or a secret manager — never in source control. Rotating or deleting a credential revokes the old key immediately (no grace period).

Use it with any S3 client ​

Point any S3-compatible tool or SDK at the endpoint and region (SigV4):

bash
aws s3 ls --endpoint-url https://s3.sweden.frostmoln.cloud --region sweden s3://my-bucket/
aws s3 cp ./file.txt s3://my-bucket/ --endpoint-url https://s3.sweden.frostmoln.cloud --region sweden

rclone, s3cmd, mc, and the AWS SDKs all work the same way — multipart uploads, byte-range GETs, and object metadata are standard S3.

Features ​

  • Versioning — toggle per bucket; previous versions are retained and listable.
  • Presigned URLs — generate time-limited signed GET/PUT/DELETE links so a browser or client can transfer an object directly without holding credentials.
  • CORS and lifecycle rules — browser uploads from the portal work out of the box. Set custom CORS and object lifecycle rules per bucket on the bucket's CORS and Lifecycle tabs, or with Terraform (frostmoln_bucket_cors_configuration, frostmoln_bucket_lifecycle_configuration). Static-website hosting is not offered.

INFO

Buckets and their data stay within the selected EU/EEA region. The S3 API is the supported interface (Swift is not offered).