Skip to content

ebman v0.50.0

Latest

Choose a tag to compare

@github-actions github-actions released this 13 Nov 23:18
· 1 commit to main since this release

Added

  • :why and MCP why lead with the environment's own health.
    Enhanced health's status and the causes behind the console's red
    banner ("38.0 % of the requests are failing with HTTP 5xx"), with the
    request rate, status-code mix and p50/p90/p99 latency over EB's last
    window. ebman read DescribeEnvironmentHealth before only for
    instance counts. An env with basic health reporting shows EB's reason
    instead; a figure EB did not report is left out, never shown as 0.
  • A platform branch AWS has deprecated or retired is marked. From
    ListPlatformBranches: (deprecated) / (retired) beside the
    platform on the fleet row, branch retired in Detail's header, and
    platform_lifecycle in ebman envs --json and MCP
    list_environments. New lint rule EBL021 (Warn deprecated, Error
    retired) in the TUI, ebman lint and MCP lint; a failed listing is
    reported as lost coverage. EBL008 said a newer version existed in the
    same branch; this says the branch itself is ending. The API gives the
    state, not a retirement date.
  • Managed platform updates: what is scheduled, what happened, and
    apply now.
    :managed-updates and MCP managed_updates show what
    EB has scheduled for an env (and the window each runs in) and the
    last ten it ran, with each failure's type and reason.
    :managed-apply ACTION_ID and the MCP write verb
    apply_managed_action run a scheduled one now; the MCP plan refuses
    an id EB does not have scheduled, and the confirmation names EB's
    description of what it installs. Gated and audited like every write,
    with no undo (:abort stops one in flight).
  • A whole dead-letter queue can be redriven inside SQS.
    :dlq-redrive and the MCP write verb dlq_redrive start SQS's
    message move task from a worker env's dead-letter queue back to its
    worker queue, so no message body passes through ebman however many
    there are. :dlq-redrive status and worker_queues (new redrive
    field) report its progress; :dlq-redrive cancel stops it. The MCP
    plan refuses an empty queue and one already being redriven. Audited
    with the task handle; no undo, since every message is processed
    again.
  • Rollback, abort, swap and scale on the CLI and MCP. They were
    TUI-only, so the README's headline :rollback could not be scripted
    or proposed by an agent. ebman action rollback|abort|swap|scale and
    the MCP write verbs rollback, abort_update, swap_cnames and
    scale. A rollback takes --to/to or the first earlier version in
    the env's events, and audits as a Deploy; abort_update refuses an
    env that is not updating; a swap gates both environments and refuses
    two applications; scale bounds are checked (0 ≤ min ≤ max ≤ 10000).
    Abort, swap and scale now audit under one shared label on every
    surface (AbortUpdate, SwapCnames, Scale, the TUI's spellings).
  • Following a write, for agents. MCP recent_events takes since
    (a window) and min_severity, passed to EB; the new read
    wait_for_env waits up to 25 seconds for an env to leave Updating,
    Launching or Terminating and says whether it settled. A deploy or
    rollback plan carries the pre-deploy lint the TUI's confirm runs:
    lint.issues, and lint.not_run for checks that could not run.
  • Application-version retention. :version-lifecycle shows an
    application's retention policy, version count and the region's version
    quota, sets a max count or age (under the app's own service role) or
    turns retention off, and undo restores what the last change in this
    session replaced. New account-level lint rules in ebman lint and MCP
    lint: EBL022 (an application keeping every version past 200)
    and EBL023 (the region's versions at 80% of the quota, Warn; 95%,
    Error) — at the quota, a deploy that creates a version fails.
  • Listener certificate expiry. :listeners lists each certificate
    an HTTPS listener serves with its expiry and ACM renewal state, and
    the new lint rule EBL024 (TUI, ebman lint, MCP lint) warns at
    30 days and errors at 7, once expired, or when ACM's renewal failed. A
    certificate that cannot be read is reported as lost coverage.
  • Every region in one read. ebman envs --regions all|r1,r2 and a
    regions argument on MCP list_environments, lint and
    recent_events: all is the home region and the configured
    extra_regions. Each row names its region, and a region that does not
    answer is named (regions_failed on MCP; a warning and exit 1 from
    ebman envs, after the rest print) rather than dropped.
  • recent_logs without CloudWatch streaming. For an env that
    streams no logs, MCP recent_logs falls back to EB's own tail of each
    instance (the same capture as the TUI's Logs tab, now one shared
    driver), split by log file. Every answer carries source
    (cloudwatch or eb_tail); tail lines have no timestamp, so the
    window does not apply.

Changed

  • ebman action refuses a flag its verb does not take. rollback --version v2 used to ignore --version and roll back to whatever the
    events named; deploy --to, restart --min and the like were dropped
    the same way. Each is now a usage error (exit 2).
  • :region all order is the same everywhere. ebman envs --regions all and MCP regions: "all" list the configured extra regions and the
    home region sorted, as :region all always has.

Fixed

  • A rollback no longer picks a version that failed to deploy. The
    target was the first event version that differed from the current one,
    and a failed deploy's events carry the version that failed: rolling
    back after a failed v3 left on v2 redeployed v3. The TUI's :undo
    fallback, ebman action rollback and MCP rollback now read only
    events saying a deploy or update succeeded, and refuse when there is
    none.

  • :scale, :swap and :abort refuse what the CLI and MCP refuse.
    :scale 20000 got past the 10,000-instance cap and :swap accepted
    the env itself; one set of checks now serves all three surfaces. (The
    CLI and MCP also refuse abort for an env with no update in flight;
    the TUI leaves that to EB, since its row's status can be a refresh
    old.)

  • :dlq-redrive refuses an empty dead-letter queue, as MCP did, and
    status lists the recent move tasks rather than one.

  • The retiring-branch marker no longer answers for other regions.
    Under :region all rows elsewhere were marked from the home region's
    branch listing.

  • Two lint rules suggested commands that do not exist. EBL008
    (stale platform) named :upgrade-platform and EBL012 (Green with no
    healthy instances) named :health; they now name :upgrade and
    :why, and a test fails any rule that names a command ebman lacks.

Security

  • :batch-set-option no longer writes a secret value to the audit
    log.
    It recorded the value it set, so an env var such as a database
    URL set across a fleet went out to notify_webhook once per
    environment and showed in ebman audit --json. The value is now
    written (redacted) under the same rule as get_option_settings
    (env-var values and DBPassword), and ebman audit withholds one in
    lines written before this release. Single-environment :set-option
    never recorded a value. Rotate any secret set this way while a
    webhook was configured.

Full Changelog: v0.49.0...v0.50.0