frostmoln_ssh_key (Resource)
Manages an SSH key 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, public_key: the platform stores the key material under its name, and its update route takes tags alone — a change re-creates the key.
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_ssh_key" "example" {
name = "my-ssh-key"
public_key = file(pathexpand("~/.ssh/id_ed25519.pub"))
}Schema
Required
name(String) The name of the SSH key.public_key(String) The public key content.
Optional
tags(Map of String) Resource tags on the SSH key: your own key/value metadata for search and filtering (?tag=key=valuein the API,--tagin the fm CLI), stored by the platform only — never written into an instance. Changing them updates the key in place; the key itself never changes. At most 32 keys including the tenant's default tags, which the platform merges in at create; a key is 1-64 bytes matching^[a-zA-Z0-9]([a-zA-Z0-9._:/-]*[a-zA-Z0-9])?$, a value at most 256 bytes; keys beginningfrostmoln_orfrostmoln-(any case) are reserved. 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.
Read-Only
created_at(String) The timestamp when the SSH key was created.fingerprint(String) The fingerprint of the SSH key.id(String) The identifier of the SSH key. Compute identifies keys by name within a tenant, so this equals the key name. Import by name:terraform import frostmoln_ssh_key.<label> <key-name>.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.