Douklar 4.0.0, 23 October 2026.A new CLI, douklar, and retry of unfinished objects from a finished S3 Batch job.Read the release notes

Douklar

Backups and costs

Optional snapshots, AMIs and patching, and a budget alert.

View as Markdown

Maintenance jobs

scheduler_features turns on optional jobs. Only reconcile is on by default.

OptionDefaultWhat it does
reconciletrueKeep instance state in line with the schedule
daily_snapshotsfalseNightly EBS snapshot
weekly_amisfalseFull AMI every Sunday night
monthly_amisfalseFull AMI on the 1st of each month
backup_cleanupfalseDelete backups past their retention
security_updatefalseWeekly security patches
maintenance_timezoneEurope/BerlinTimezone for all jobs
daily_snapshot_retention_days7Days to keep daily snapshots
monthly_ami_retention_days30Days to keep monthly AMIs

Budget alert

module "workspace" {
  source  = "douklar/agent-workspace/aws"
  version = "~> 2.0"

  cost_report = {
    enabled                  = true
    email_addresses          = ["you@example.com"]
    monthly_budget_limit_usd = 50
    alert_threshold_percent  = 80
  }
}

This creates an AWS Budgets alert; with the values above it emails at $40. You pay AWS for the instance, storage, snapshots and the other resources in your account.

AMI export

With ami_transfer.enable_export = true, AWS VM Import/Export needs an existing IAM role named vmimport that trusts vmie.amazonaws.com. After apply, terraform output -raw manual_export_latest_ami_example prints the command that starts an export.

Keyboard shortcuts

g h
Home
g c
The console
g m
Use cases
g d
Docs
g r
Releases
/ or Ctrl K
Search the docs (on docs pages)
t
Switch light and dark
?
Show this list