compare_dr_strategies
Compare disaster recovery costs across backup/restore, pilot light, warm standby, and active/active using live AWS Cost Explorer data to choose a cost-effective option.
Instructions
Compare DR cost across all four strategies using live Cost Explorer data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_n | No | Top-N rollup size. Ignored when include_all_services is true. | |
| region | No | Optional AWS region for the boto3 session. Cost Explorer is accessed via us-east-1. | |
| profile | No | Optional AWS named profile. Defaults to the boto3 credential chain. | |
| months_back | No | Number of complete months of Cost Explorer history to average across (1-24). | |
| tag_filters | No | Optional cost-allocation-tag scope mapping a tag key to accepted values, e.g. {"Project": ["checkout", "payments"], "Environment": ["prod"]}. Keys are ANDed; values within a key are ORed. Scopes the estimate to a tagged workload instead of the whole account/portfolio. Tag keys must be activated as cost allocation tags; untagged resources are excluded from the estimate. | |
| linked_account_ids | No | Optional list of 12-digit AWS account ids to restrict the query to. | |
| include_all_services | No | When true, skip the Top-N rollup. | |
| warm_standby_capacity | No | Fraction of primary compute capacity kept warm in the DR region for the warm_standby strategy (0.1-1.0, default 0.5). Rescales fleet-shaped compute services (EC2, EBS, ECS, EMR) only; databases, storage, and control-plane fees are unaffected. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Populated only when ``success`` is False. | |
| success | Yes | True when the call succeeded. False indicates ``error`` is populated. | |
| summary | No | Plain-text 2-4 sentence summary of the comparison. Empty string on error. | |
| warnings | No | Non-fatal warnings, for example when the summary generator fell back to its literal placeholder string. | |
| top_services | No | Portfolio-wide top-N services list, with current cost and per-strategy DR additional cost on each row. | |
| confidence_summary | No | Dollar-weighted confidence summary across the portfolio. Null on error. | |
| per_account_totals | No | Per-account totals list with one row per account. For single-account inputs this list contains exactly one entry whose totals reconcile with the portfolio totals within rounding tolerance. | |
| total_current_cost | No | Sum of current_cost across all returned services, in USD. | |
| per_strategy_totals | No | Portfolio-wide totals keyed by strategy id for the four supported strategies. |