Skip to main content
  1. Setup/

Configuration

BMC is configured via ~/.config/bmc/config.json.

Example #

{
  "mfa": {
    "enabled": true,
    "totp_script": "/usr/bin/rbw get my-aws-mfa-entry --field totp",
    "copy_command": "wl-copy",
    "paste_command": "wl-paste | wtype -"
  },
  "ec2": {
    "auto_start_stopped": "prompt",
    "columns": ["InstanceId", "Name", "PrivateIP", "PublicIP", "State", "Hibernate", "Scheduler"]
  },
  "console": {
    "firefox_containers": true
  }
}

Reference #

KeyTypeDefaultDescription
mfa.enabledboolfalseEnable MFA session management
mfa.totp_scriptstring""Shell command to generate a 6-digit TOTP code
mfa.copy_commandstring""Command to copy TOTP to clipboard (receives code via stdin)
mfa.paste_commandstring""Command to simulate paste keystroke 300ms after copy
ec2.auto_start_stoppedstring"prompt"always / never / prompt — what to do when connecting to a stopped instance
ec2.columns[]stringall columnsColumns to show in EC2 tables, in order
console.firefox_containersboolfalseOpen AWS console in Firefox container tabs via the Granted extension
console.chrome_profilesboolfalseOpen AWS console in isolated Chrome profiles per AWS account
console.chrome_binarystring"google-chrome"Chrome binary to use ("chromium", "brave-browser", etc.)

EC2 columns #

The ec2.columns field controls which columns appear in EC2 instance tables and in what order. Available values:

ColumnDescription
InstanceIdEC2 instance ID
NameValue of the Name tag
PrivateIPPrivate IPv4 address
PublicIPPublic IPv4 address
StateInstance state (running, stopped, etc.)
HibernateWhether hibernation is enabled (yes/no)
SchedulerWhether the InstanceScheduler tag is set (yes/no)
ProfileAWS profile name (always shown in ec2find)

Unknown column names render as n/a.