Skip to content

About

AWS Cloud Risk Review: organisational risk across an AWS Organization in four board-ready reports (Exit Risk, Multi-Region, Cloud Assurance, Outage Risk). Read-only, runs locally, one-paste install.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

AWS Org Level Risk Framework Reporting

Install in one paste

Copy the whole block into a macOS or Linux terminal. It needs git and Python 3.10 or newer, installs into ~/aws-org-level-risk-framework-reporting (set EXITRISK_DIR to change it), and opens the console at http://127.0.0.1:8740. On a Mac it also adds an AWS Cloud Risk Review app, so the console is found from Spotlight, Launchpad or the Dock. Running it again updates an existing install.

cat > install-exitrisk.sh <<'EOF'
#!/usr/bin/env bash
set -euo pipefail
REPO="https://github.com/andrewbakercloudscale/aws-org-level-risk-framework-reporting.git"
DIR="${EXITRISK_DIR:-$HOME/aws-org-level-risk-framework-reporting}"

command -v git >/dev/null || { echo "Please install git first."; exit 1; }
PY=""
for c in python3.14 python3.13 python3.12 python3.11 python3.10 python3; do
  if command -v "$c" >/dev/null && "$c" -c 'import sys; sys.exit(sys.version_info < (3, 10))'; then PY="$c"; break; fi
done
[ -n "$PY" ] || { echo "Please install Python 3.10 or newer (macOS: brew install python)."; exit 1; }

if [ -d "$DIR/.git" ]; then
  echo "Updating $DIR"; git -C "$DIR" pull --ff-only -q
else
  echo "Installing into $DIR"; git clone -q "$REPO" "$DIR"
fi
cd "$DIR"
[ -x .venv/bin/python ] || "$PY" -m venv .venv
.venv/bin/python -m pip install -q --upgrade pip
.venv/bin/python -m pip install -q -e .
echo "Installed $(.venv/bin/exitrisk --version 2>/dev/null || echo exitrisk)."
if [ "$(uname)" = Darwin ] && .venv/bin/exitrisk app >/dev/null 2>&1; then
  echo "Open it again later from Spotlight or Launchpad: AWS Cloud Risk Review"
else
  echo "Start it again later with: $DIR/.venv/bin/exitrisk serve"
fi
exec .venv/bin/exitrisk serve
EOF
chmod +x install-exitrisk.sh
./install-exitrisk.sh

The console is AWS Cloud Risk Review: four report tabs for different audiences, from one scan of an AWS Organization. They are never merged into one score. Two tabs have further parts, chosen under the tabs: Cloud Assurance holds Developer Compromise and the Access Graph, and Outage Risk holds the Health Check.

Report For Answers
Exit Risk Report Executive committee, board How hard, costly and slow it would be to leave AWS
Multi-Region Report CIO, risk, infrastructure What a second AWS region costs to run, adds to each team, and how fast each service recovers
Cloud Assurance Report CISO, risk, audit How well each account is controlled, scored against the rules you choose
  Cloud Assurance: Developer Compromise CISO, payments, platform Assuming laptops and pipelines are already compromised: whether every money moving flow is immutable or observed, who can change it, and which databases a laptop can reach directly
  Cloud Assurance: Access Graph Account owner, CISO, network, platform Account map: every way data moves in or out of one account (internet, NAT and transit gateways, peering, VPN, Direct Connect, endpoints, public load balancers, APIs, CloudFront, public addresses, outside trusts), with icons, where each leads, and optionally 24 hours of flow-log traffic on each; select an account to open its map. Organisation reach: what can reach an account, a chosen number of hops out, following transit gateway route tables
Outage Risk Report CIO, infrastructure, SRE What could fail at a peak such as Black Friday: limits, capacity that cannot grow, storage, databases, MSK, Connect, EKS workloads, shared network and DNS, certificates, end of life software and container images, in every account, ranked by risk and blast radius
  Outage Risk: Health Check On call, SRE During an outage or any time: a deep read of one to ten accounts, a Health Score out of 100 and the issues most worth acting on now

Each can have its own optional AI read, on by default in Run scan or run later from the report.

How hard would it be to leave AWS? This tool answers that for an entire AWS Organizational Unit, in a form an executive committee can act on: one exit risk score, weighted by where the money is actually spent, the services and accounts that drive it, and an indicative cost and time to exit.

Risk without transparency is just fear and anxiety. Every bank board has heard "we are locked into AWS". Few can say by how much, where, or what it would cost to get out. This framework turns that worry into a number, a ranked list and a plan.

Why this exists: Regulatory Risk, the missing pillar

The AWS Well-Architected Framework has six pillars: Operational Excellence, Security, Reliability, Performance Efficiency, Cost Optimization and Sustainability. They describe a workload that runs well on AWS. None of them asks the question a regulator asks first: could you leave if you had to?

For regulated entities (banks, insurers, payment providers, market infrastructure, healthcare) that question is not optional. Running material workloads in the cloud is outsourcing, and outsourcing rules require a documented, credible and tested exit strategy:

Regulation What it expects
EU DORA (Art. 28) Exit strategies for ICT third party services supporting critical or important functions, tested and documented
EBA Guidelines on outsourcing (EBA/GL/2019/02) Documented exit plans, with an assessment of how complex and costly exit would be
UK PRA SS2/21 Stressed exit plans for material outsourcing, including alternative providers and timelines
APRA CPS 230 Exit plans for material service providers, so critical operations continue if the provider fails or the arrangement ends
SARB Prudential Authority Directive 3/2018 and Guidance Note G5/2018 (cloud computing and offshoring of data) Exit and contingency arrangements for material cloud usage

This framework proposes Regulatory Risk as the seventh pillar: the measured degree to which your architecture keeps you free to exit, change providers, or bring workloads back in house. Like the other pillars, it is a design property you can measure, track and improve:

  • Measure it: a spend weighted 0 to 100 exit risk score per OU and per account, from your own billing data, against an open catalog of 120 AWS services ranked by portability.
  • Explain it: which services (Connect, Redshift, DynamoDB, Lambda…) and which accounts drive the score, why each service is hard to move, the migration path, and how long it typically takes.
  • Plan it: indicative effort, duration and cost of a full exit, adjusted for your delivery maturity (CI/CD, Terraform, team size), ready for the exit plan your regulator asks to see.
  • Track it: rescan each quarter, so new lock in shows up as it is adopted, not when the exit is needed. Choosing a proprietary service can still be the right call; this makes it a known, priced choice rather than an accident.

The aim is not to discourage AWS. It is to replace "we are locked in" (fear) with "38/100, with three accounts holding 57% of the spend at risk and roughly 3 to 5.5 years to exit" (a fact a board can govern).

Dashboard overview

What it does

Recent additions

  • Health Check: a new report for an outage going on now. Search and tick up to 10 accounts; it reads metrics, alarms, changes, logs, load balancer targets, network, DNS and quotas, and ranks the top issues by how likely each is to cause an outage. Works with SSO or an access key from your credentials file.
  • Outage Risk: an Immediate attention section, Actions by owner, Export table to PDF and Complete the scan; shared network and DNS accounts, transit gateway, DNS failover and certificate renewal checks; end of life databases, EKS versions, Amazon Linux 2 nodes and operating systems; container images pulled from outside ECR, pulled on every start, or failing to pull; Aurora Serverless reaching its maximum ACUs. CloudWatch figures are now read whole in busy accounts (one call returns at most 500 series, and the searches past that used to come back empty), and anything still unread shows as not measured.
  • Developer Compromise: a new report with an executive summary, Where to focus charts, Show only critical, database proxy and known path checks, and a picker that reads again the accounts checked last time.
  • Cloud Assurance: every account scored against 139 controls in 13 areas, with rulesets you choose and save, ownership fixes to approve and export, and an evidence file with a SHA-256.
  • Console: the version and release time in the top bar, a flashing sign in button when signed out, an X on every window, and a pulsing button while a scan runs.
  • Scores every account by the spend weighted exit difficulty of the AWS services it uses. EKS, EC2 and Postgres/Aurora score low; DynamoDB, Lambda, Step Functions, Redshift and Connect score high. 120 services are classified in an open, reviewable catalog.
  • Two headline scores: by spend and by number of accounts. Weighted by spend, a small account full of proprietary services is flagged without distorting the number; counted per account, one very large account (e.g. a contact centre on Connect) cannot set the whole picture. The gap between the two tells you whether risk is concentrated or widespread.
  • Counts portable vs higher risk accounts: how many accounts sit in each rating, against the share of spend they hold.
  • Filters to production (or anything else) by account name: contains / starts with / ends with / regex, plus exclusions, e.g. prod, prd excluding sandbox.
  • Estimates the exit: engineer effort, calendar duration and cost, adjusted by the answers under Exit model in the top bar: standard CI/CD? Terraform up to date? How big is the core cloud team? Do teams use AI coding agents (each service is rated for how much an agent cuts its porting work: Lambda about half, data moves not at all)?
  • Leaves products out on request: Exclusions in the top bar lists every AWS product in the scan with its spend; tick any (e.g. Marketplace) and click Apply and regenerate. No rescan.
  • Shows scan issues up front: Issues in the top bar shows the count, coloured by the worst severity, and jumps to section 9.
  • Costs a second region (Multi region tab): extra cost to run, cost and time to achieve, extra staff, the recommended second region (service parity, latency, price), for a 3-hour recovery or instant failover, for the accounts you pick, with each account's failover risks (e.g. EC2 needs manual failover). Each candidate region says why it ranks where it does, missing services can be corrected, and the regulation to check (e.g. POPIA, Prudential Authority) is listed. See MULTI_REGION.md.
  • Names who owns the risk: owner and executive from account tags, with spend at risk by executive.
  • Compares scans (Settings → Compare scans): score, spend, tiers, accounts added, removed or rerated, and services that grew or appeared between two scans. A monthly scan (Settings) repeats a scan each month so the comparison shows a trend.
  • Times the exit (section 6): whether it fits a regulator or board notice period you enter under Exit model, which Savings Plans and reservations run off before it finishes, and what would be written off: still owed after the exit for capacity no longer used. That total (with any EDP shortfall) is a key figure in the executive summary, and a chart shows each month's commitments with the exit window shaded and what would be written off if the exit finished in that month. It also gives the last date a 3-year term stays inside the window.
  • Tests resilience (section 7): which accounts are critical (from account tags such as Criticality = Tier1, or names you give), how much of the critical estate one regional event would take down, whether tier 1 channels are isolated from each other (anti affinity), what could move in weeks under a stressed exit, and how many terabytes an exit has to move. It counts the Direct Connect links you have today (from Cost Explorer port hours) and prices three options for new 10 Gbps links dedicated to the migration, kept apart from production: Cheap (1 link), Medium (2) and Urgent (4), each with time to copy, AWS port cost, data out and total at AWS list price.
  • Names the areas of focus (section 8): the accounts whose complexity or risk will decide the exit (AWS only services with no like for like target, critical services, AWS only integrations, data to move, share of the effort, evidence and owner gaps), how to tackle each, and in which phase.
  • Optional AI review (section 2): on by default in Run scan, and it runs when the scan finishes; an overall AI summary of what matters most, the accounts to focus on and how to tackle them, as a second opinion from Claude (Bedrock, Claude Enterprise/API, OpenRouter) or GLM (Together AI) on entrenchment, cost, time and focus, in three passes with an independent review for inconsistencies. See AI_REVIEW.md.
  • Exports a board ready PDF with charts, an executive narrative, a data quality section, and an appendix explaining every service's tier, recommended migration path and typical duration.
  • Never fails silently: every AWS API error becomes an issue on the report with a fix, and is written to a structured log.

Everything is read only. The core score needs only Organizations and Cost Explorer read access in the management (payer) account; the optional deep scan counts resources, and the dependency scan the integrations between them, through a read only role that stores counts only.

Spend measures exposure, not difficulty. Beside the spend weighted score the report gives technical portability (weighted by engineering effort), exit effort in engineer days, the exit window, five dimensions (service portability, dependency complexity, data gravity, engineering effort, operational criticality) and the readiness of each critical account.

Quick start

1. Install (Python 3.10+; one command, no virtual environment to manage):

uv tool install git+https://github.com/andrewbakercloudscale/aws-org-level-risk-framework-reporting
# or: pipx install git+https://github.com/andrewbakercloudscale/aws-org-level-risk-framework-reporting
exitrisk serve              # opens http://127.0.0.1:8740
exitrisk app                # macOS: adds an "AWS Cloud Risk Review" app for Spotlight, Launchpad and the Dock

Opening the app starts the console if it is not running and opens the page. On Windows or Linux, open the page in Chrome or Edge and choose Install app in the address bar for the same thing.

2. Follow the three steps on the first screen:

Step What happens
Connect to AWS AWS sign in for SSO / IAM Identity Center (paste your portal's start URL once), or any AWS CLI profile already on the machine, including aws-cli-zsp. Use the management (payer) account.
Check access Tests the five read only calls a scan needs and shows ✓ / ✗ with the fix for each. If anything is missing it writes the request to send your AWS administrator: your identity, the account, the policy, ready to copy or download.
Scan and report Seconds for hundreds of accounts. Type prod in the filter bar, answer the questions under Exit model in the top bar, then Export PDF above the report.

No AWS access yet? Settings (gear, top right) → Load demo data shows a synthetic bank estate (49 accounts, made up numbers).

What your AWS administrator grants (read only, in the management account): an IAM Identity Center permission set with this inline policy, or the AWS managed AWSOrganizationsReadOnlyAccess + AWSBillingReadOnlyAccess, ready made in Terraform and CloudFormation. Details: docs/IAM_PERMISSIONS.md.

For development: git clone …, python3 -m venv .venv && . .venv/bin/activate && pip install -e '.[dev]'. Scripted PDFs need pip install '.[pdf]' and playwright install chromium.

Credentials, including aws-cli-zsp

The scanner uses standard AWS profiles from ~/.aws/config, so anything boto3 supports works: SSO, credential_process, assumed roles. With aws-cli-zsp the first API call of a scan triggers one Touch ID approval and the resulting 1-hour session is reused for the whole scan. The tool never reads, stores or logs keys.

AWS SSO (IAM Identity Center), no terminal needed. Click AWS sign in in the console header, add your access portal's start URL once (its region is found automatically), and approve the sign in on AWS's own page. The console lists every account you can reach, preselects the organisation's management account, and Use for a new scan creates (or reuses) a matching SSO profile in ~/.aws/config. The token goes to the AWS CLI's own cache, so aws and exitrisk scan --profile … share the sign in; it is never sent to the browser.

Command line

exitrisk scan --profile mgmt --ou ou-ab12-cdef3456 --months 3          # spend-only scan (--ou a,b for several OUs)
exitrisk scan --profile mgmt --inventory --role ExitRiskReadOnly        # plus resource counts
exitrisk scan --profile mgmt --dependencies --role ExitRiskReadOnly     # plus integrations between services
exitrisk scan --profile mgmt --dependencies --inventory-scope material --role ExitRiskReadOnly  # deep-scan material accounts only
exitrisk scan --profile mgmt --dependencies --spend-regions --role ExitRiskReadOnly       # only regions with spend: about twice as fast
exitrisk scan --profile mgmt --assurance --spend-regions              # plus the Cloud Assurance Framework checks
exitrisk pdf <scan-id> --view assurance --include prod                # Cloud Assurance Framework Report as PDF
exitrisk scan --profile mgmt --outage --spend-regions                 # plus the outage risk checks
exitrisk pdf <scan-id> --view outage                                  # Outage Risk Report as PDF
exitrisk scan --profile mgmt --target gcp                               # exit target: azure (default), gcp, oci, sovereign, onprem, datacenter
exitrisk pdf <scan-id> --include prod --questionnaire answers.json --out board-pack.pdf  # PDF without a browser
exitrisk pdf <scan-id> --include prod --onepage                      # one-page ExCo summary
exitrisk report <scan-id> --include prod --questionnaire answers.json   # JSON for other tools
exitrisk catalog                                                        # list service tiers

Screenshots

Executive summary: Bottom line, findings, exit cost and time as ranges, recommendations, confidence; then scores and key figures.

Executive summary

Where the work is: technical portability, exit effort and the five dimensions, measured apart from spend.

Where the work is

Critical account readiness and integrations

Risk profile: Spend by tier and its trend, and which product types are growing.

Risk profile

Accounts: How many accounts are portable vs higher risk; risk vs spend; ranking by spend at risk (spend × risk).

Accounts

Services: The AWS only services that drive lock in.

Services

Exit estimate: Your answers (CI/CD, Terraform, team size), the exit timeline and where the effort goes.

Exit estimate

Timing: The exit window against your notice period, Savings Plans and reservations written off over time, and the EDP.

Timing

Resilience: Critical accounts, correlated failure by region and channel, a stressed exit, the data to move and the links to move it.

Resilience

Areas of focus: The accounts that will decide the exit, why, how to tackle each and in which phase, with programme themes and a plan by phase. The optional AI review in section 2 gives the AI's view.

Areas of focus

Data quality: What the report does not cover, and why.

Data quality

Appendix: Each service's tier, rationale, migration path and typical duration.

Appendix

Multi-Region Report: A second AWS region for the accounts you choose: run cost, people by team, recovery time per service, build, and where to put it.

Multi region summary

Multi region accounts: Sorted by spend; choose which go multi region; each service's failover risk.

Multi region accounts

Second region: Candidates ranked by service parity, latency and price.

Second region

Recovery time by service: RTO and RPO per service under each DR strategy; the services that miss your target first.

Recovery time

Getting started: Connect, check access, scan.

Getting started

Check access: ✓/✗ per permission, and the request to send your AWS administrator.

Check access

AWS sign in: SSO / IAM Identity Center from the header.

AWS sign in

Run scan: one daily scan fills every report. The first press opens Scan settings (profile, one or more OUs, regions); after that each press runs straight away with the saved settings. Everything the role can read is on by default; anything it is refused shows as not read, never as a pass, and leaves the score.

Scan settings

One page ExCo summary: score, headline, six tiles, tier bar, top findings and decisions, and the accounts that drive the exit with their owners, and who owns the risk, on one A4 page. Export PDF → One page summary above the report, or exitrisk pdf --onepage.

One page summary

Dark mode

Dark mode

Complete sample reports generated from the demo data: exit risk, one page summary, multi region.

Cloud Assurance Framework Report: every account scored against the selected controls, weakest areas first.

Cloud assurance summary

Choose the rules that apply, change severities, and save the selection as a ruleset.

Rules and rulesets

Each finding says why it matters, how to fix it and where; each account opens to its failing and unmeasured checks.

A finding

Accounts

Owners missing or not found in the directory, with proposed owners to approve and export.

Ownership

How the score works

Tier Label Score Example services
1 Portable 10 EC2, EKS, EFS, ElastiCache, MSK, OpenSearch, Route 53
2 Low 30 S3, RDS/Aurora, ECS, DocumentDB, KMS, CloudFront
3 Moderate 50 SQS, SNS, API Gateway, Athena, SageMaker, Bedrock
4 High 75 Lambda, Redshift, Glue, Kinesis, Step Functions, EventBridge, Cognito
5 Critical 95 DynamoDB, Connect, Greengrass, SWF, QLDB
  • Inherent risk of an account = spend weighted mean of its services' scores (0 to 100).
  • Weight = the account's share of in scope spend (or 1/N when counting by number of accounts).
  • Contribution = inherent risk × weight.
  • OU exit risk score = sum of contributions, reported both by spend and by number of accounts.
  • Spend at risk = monthly spend × risk / 100. The account ranking sorts by it, so large, hard to move accounts come first.
  • Ratings: Low < 25 ≤ Moderate < 40 ≤ Elevated < 55 ≤ High < 70 ≤ Critical.

Full detail, including the estimate model and its limitations: docs/METHODOLOGY.md.

Documentation

Document For
METHODOLOGY.md Scoring, weighting and estimate formulas; assumptions; limitations
AI_REVIEW.md The optional AI review: providers, passes, what is sent, keys
CLOUD_ASSURANCE.md The Cloud Assurance Framework Report: every rule, rulesets, scoring, permissions
ACCESS_GRAPH.md The Access Graph: which paths are read, what each edge means, how hops are counted, and what it does not evaluate
DEVELOPER_COMPROMISE.md The Developer Compromise Report: assumes laptops and pipelines are compromised, and checks each money moving flow is immutable or observed
HEALTH_CHECK.md The Health Check Report: a deep check of one to ten accounts during an outage, top issues ranked by outage likelihood, access keys or SSO
OUTAGE_RISK.md The Outage Risk Report: what is checked, how severity is set, the evidence on outage causes, what is not measured
MULTI_REGION.md The Multi-Region Report: run and build cost, team growth, recovery time per service, region choice
SERVICE_CATALOG.md Every service's tier, rationale, migration path, equivalents, duration
IAM_PERMISSIONS.md Exact permissions; StackSet / Terraform for the member role
ARCHITECTURE.md Components, data flow, security model, logging and error handling
OPERATIONS.md Running scans, logs, troubleshooting every known error
EXCO_GUIDE.md How to read and present the report to an executive committee
PLAN.md Project plan, delivery phases and roadmap
CONTRIBUTING.md Changing the catalog, development setup, tests
SECURITY.md Threat model and how to report a vulnerability

Contributing

The catalog is the heart of the project and the easiest place to help: a new service, a better migration path, or a challenge to a tier. See CONTRIBUTING.md.

Licence

Apache 2.0. The estimate is an order of magnitude planning figure for an executive decision, not a delivery quote. AWS is a trademark of Amazon.com, Inc.; this project is not affiliated with or endorsed by AWS.

About

AWS Cloud Risk Review: organisational risk across an AWS Organization in four board-ready reports (Exit Risk, Multi-Region, Cloud Assurance, Outage Risk). Read-only, runs locally, one-paste install.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages