Preflight
Preflight is a command-line tool that audits your AWS account and tells you what's worth fixing. It looks at how you deploy, what you're spending, and how much of your infrastructure depends on one or two people, then prints you a report you can read, diff, or paste into a ticket.
It's read-only and open source (Apache-2.0), and it runs on your own machine. Your AWS credentials stay there.
Getting started
curl -fsSL https://jetonecloud.com/preflight | sh
preflight demo # see what a report looks like, no account needed
pipx, uv, Homebrew and Docker work too — see docs/installation.md. No AWS CLI locally? Run it from CloudShell.
Scanning your account
-
Generate the role. This step makes no AWS calls and needs no credentials, so you can read the whole template first:
preflight scan --modules cost --save
Run
preflight scanwith no flags and it asks instead — which checks to run, then which permissions to grant them. You get a CloudFormation template with only the read-only actions those checks declare;--services ec2,rdsnarrows it further. (iam/role.cfn.yamlis the same thing with everything selected.) -
Deploy it from the CloudFormation console or with
aws cloudformation deploy, and grab the stack'sRoleArnoutput. -
Log in as you normally do (
aws sso login, a named profile) and scan:preflight scan --role-arn arn:aws:iam::123456789012:role/PreflightReadOnlyRole
Preflight lists every call it's going to make and asks before making any of them. Leave --region off and it scans every region the account has enabled — waste tends to be in the region you've forgotten about.
Don't want to create the role? --profile my-profile, or --current for CloudShell, env vars or an instance role. Preflight will say so when you're scanning as something broader than it needs — the root user especially.
Where the report goes
Same report either way, off the same scan:
- In the terminal (the default) — a section at a time, arrow keys to move,
afor the whole thing,qto leave. Plain ASCII tables. Down a pipe or in CI, every section just prints in order. - As a PDF, for when the person who needs to read it isn't the person who ran it. Paginated, with a contents page and every finding in full. Set in Helvetica, with a teal accent and severity in colour: a document to read and argue about, not a dashboard. Preflight writes it directly — no browser, no rendering engine, no links out, nothing fetched when it's opened.
Alongside either, a versioned JSON export you can diff between scans.
preflight scan --role-arn <arn> --pdf # PDF instead of paging it here
preflight scan --role-arn <arn> --terminal # here, without being asked
preflight scan --role-arn <arn> --pdf --no-json # the PDF and nothing else
Each flag answers one question, so --pdf alone still asks about the JSON. Where there's nobody to ask — a pipe, CI, --yes — you get the terminal report and the JSON. --out <dir> puts the files somewhere else.
What the Cost Check looks for
| Check | Looks for |
|---|---|
| Unattached EBS volumes | Disks attached to nothing, billed every hour |
| Elastic IPs attached to nothing | Public IPv4 addresses you're renting and not using |
| NAT gateways with no traffic | ~$33/month each, with nothing routing through them |
| Load balancers with nothing behind them | No targets registered, or no requests at all |
| Instances stopped for a month or more | Stopped instances whose EBS volumes are still billed |
| Stopped RDS instances | Still charged for storage — and AWS restarts them after 7 days |
| Snapshots nothing is using | Old snapshots whose volume is gone and which no AMI depends on |
| Old manual database snapshots | Manual RDS snapshots nobody is going to restore |
| Instances bigger than their workload | Running instances whose peak CPU never approaches what they're paying for |
Every finding shows its own arithmetic — "500 GB of gp3 at $0.08/GB-month" — so you can check any figure yourself. Estimates use us-east-1 list prices and ignore Savings Plans and Reserved Instances: numbers you'd be comfortable defending, not the biggest ones we could justify.
Checks keep quiet when they aren't sure. A volume detached three days ago is a migration in progress; a snapshot an AMI depends on is load-bearing. docs/cost-check.md has the thresholds and guards. Already decided about something? Tag it preflight:ignore and no check will mention it again.
preflight scan --list-checks # the checks, and what each one needs
preflight scan --role-arn <arn> --only idle-nat-gateways
preflight scan --role-arn <arn> --days 30 # a longer look at usage
preflight scan --role-arn <arn> --redact # shareable without sharing your account
Permissions and your data
iam/policy.json uses only Get, List and Describe actions, with no wildcards. Each check declares what it needs, so a generated role covers the checks you picked and nothing else — Preflight refuses to emit a policy containing a write verb or a wildcard.
That declaration is enforced at runtime too: a check may only make the calls it declared, and anything else is a hard error rather than a quiet extra read. If a permission is missing, the check is reported as skipped with the action named. Nothing is quietly left out.
Preflight uses the standard AWS credential chain (profiles, SSO, STS, assume-role) and never handles your keys directly. A scan reads AWS, prints the report, and writes the local files you asked for — no telemetry, no upload, nothing to opt out of. --redact replaces every account and resource identifier with a stable pseudonym, leaving the findings and arithmetic intact.
Email delivery, and the preflight preview command that would show you the exact payload first, are planned and not built yet — preflight preview currently does nothing.
Releases are signed and come with checksums. SECURITY.md has the full data-handling details and our threat model.
Contributing
Welcome — see CONTRIBUTING.md and CODE_OF_CONDUCT.md.
License
Apache License 2.0, see LICENSE. Some check logic is adapted from other Apache-2.0 and MIT-licensed projects, credited in NOTICE.
Want help fixing what it finds?
That's what we do at Jet1: deploys, AWS infrastructure, cost work, and on-call, with an SLA, and you own everything we build. Book a 20-minute call.
Metadata
Release files for preflight-cli 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| preflight_cli-0.2.0.tar.gz | 319.0 kB | With provenance | Details for preflight_cli-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| preflight_cli-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for preflight_cli-0.2.0-py3-none-any.whl |
Total release size: 449.1 kB
Release files / preflight_cli-0.2.0.tar.gz
| Download URL | preflight_cli-0.2.0.tar.gz |
|---|---|
| Size | 319.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
034b7baec84e3f4b525725820d979c8b02a96386c3b2563cb755947af2400c31
|
|
BLAKE2b-256 checksum How to use checksums |
576e74405b5f6fec7e4baf3434bb7aecb4ccbb4897fe21169aea05d12097fcda
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logRelease files / preflight_cli-0.2.0-py3-none-any.whl
| Download URL | preflight_cli-0.2.0-py3-none-any.whl |
|---|---|
| Size | 130.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
775dc6467740750fba3dfe19cd109a8708b8de907b5c209393978170ac02db75
|
|
BLAKE2b-256 checksum How to use checksums |
746d6b0097f57acf1d387cf1b63a99ba8b26393101c4c72f6ea824f39410b605
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logSecurity for preflight-cli 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for preflight_cli-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.