Skip to content

frostmoln_postgres_backup (Resource)

Manages a backup of a managed PostgreSQL instance. Backups are immutable after creation.

Example Usage

terraform
resource "frostmoln_postgres_backup" "pre_upgrade" {
  instance_id = frostmoln_postgres_instance.main.id
  name        = "pre-upgrade"
  type        = "full"
}

Schema

Required

  • instance_id (String) The ID of the PostgreSQL instance to back up.
  • name (String) The name of the backup.

Optional

  • type (String) The type of backup: "full" or "incremental". Defaults to "full".

Read-Only

  • completed_at (String) The timestamp when the backup completed.
  • id (String) The unique identifier of the backup.
  • size_bytes (Number) The size of the backup in bytes.
  • started_at (String) The timestamp when the backup started.
  • status (String) The current status of the backup.