Lightweight, high-performance FinOps toolkit for AWS
Project description
๐ฆ Remora-Fin: High-Performance AWS FinOps CLI
Remora-Fin is a lightweight, high-performance FinOps toolkit for AWS. Built with Polars and Textual, it attaches to your AWS environment to analyze spending, detect anomalies, and export professional-grade reports.
๐ Key Features
- ๐ Vector Graphics: Native PDF visualizations (Bars & Lines) with zero external dependencies.
- ๐ High-Speed Analysis: Powered by Polars for near-instant processing of large billing datasets.
- ๐ Anomaly Intelligence: Identify unexpected cost spikes using AWS Cost Explorer algorithms.
- ๐ฎ Predictive Analysis: Integrated spending forecasts to avoid end-of-month surprises.
- ๐ Efficiency & Unit Economics: Correlate cost with real-world utilization metrics (CPU, Memory, I/O) to identify waste and right-sizing opportunities.
- ๐ฅ๏ธ Terminal UI: Interactive dashboard (TUI) with a high-performance UI Facade and internal caching for ultra-responsive navigation.
- ๐๏ธ Registry Architecture: Dynamically managed AWS inventory via a centralized resource registry, making it easy to extend monitoring to new services.
- ๐ Privacy First: All data processing happens locally on your machine. Remora-Fin never sends your billing data to external servers.
๐ Service Coverage & Checklist
Remora-Fin provides deep visibility into your AWS environment. Below is the checklist of active integrations and their supported FinOps depth.
| AWS Service | Status | Tracking | Pricing | Cost Calc |
|---|---|---|---|---|
| Compute | ||||
| EC2 Instances | Active | โ | โ | โ |
| Lambda Functions | Active | โ | โ | โ |
| ECS Clusters | Active | โ | โ | โ |
| EKS Clusters | Active | โ | โ | โ |
| App Runner | Active | โ | โ | โ |
| Storage | ||||
| S3 Buckets | Active | โ | โ | โ |
| EBS Volumes | Active | โ | โ | โ |
| EFS File Systems | Active | โ | โ | โ |
| Databases | ||||
| RDS Instances | Active | โ | โ | โ |
| DynamoDB Tables | Active | โ | โ | โ |
| ElastiCache | Active | โ | โ | โ |
| Redshift | Active | โ | โ | โ |
| Networking | ||||
| CloudFront | Active | โ | โ | โ |
| ELB (v2) | Active | โ | โ | โ |
| NAT Gateway | Active | โ | โ | โ |
| App Integration | ||||
| SNS Topics | Active | โ | โ | โ |
| SQS Queues | Active | โ | โ | โ |
| Step Functions | Active | โ | โ | โ |
| Analytics & ML | ||||
| EMR Clusters | Active | โ | โ | โ |
| SageMaker | Active | โ | โ | โ |
| Glue | Active | โ | โ | โ |
| Management | ||||
| KMS Keys | Active | โ | โ | โ |
| Secrets Manager | Active | โ | โ | โ |
| Transfer Family | Active | โ | โ | โ |
๐ฆ Installation
Install Remora-Fin using pip or uv:
# Using uv (Recommended)
uv tool install remora-fin
# Using pip
pip install remora-fin
๐ IAM Permissions
Remora-Fin requires read-only access to AWS Cost Explorer, Organizations, and various resource metadata for the dashboard inventory.
Option 1: Managed Policy (Recommended)
Attach the AWS managed policy ReadOnlyAccess to your IAM user or role. This is the simplest way to ensure all features work correctly.
Option 2: Granular Permissions
If you prefer a least-privilege approach, ensure your IAM identity has the following permissions:
| Service | Action | Purpose |
|---|---|---|
| Cost Explorer | ce:GetCostAndUsage |
Cost reports and trends. |
ce:GetAnomalies |
Cost spike detection and monitor access. | |
ce:GetCostForecast |
Native spend projections. | |
| Security Token | sts:GetCallerIdentity |
Current account and user identification. |
| Organizations | organizations:ListAccounts |
Multi-account environment support. |
| Tagging | tag:GetResources |
Governance and tag compliance scoring. |
| Pricing | pricing:GetProducts |
Real-time unit price lookups for right-sizing. |
| Metrics | cloudwatch:GetMetricStatistics |
Resource utilization analysis. |
| Inventory | ec2:DescribeInstances |
EC2 Instance tracking. |
s3:ListAllMyBuckets |
S3 Bucket inventory. | |
rds:DescribeDBInstances |
RDS Database tracking. | |
lambda:ListFunctions |
Serverless function monitoring. | |
cloudfront:ListDistributions |
Edge delivery tracking. | |
dynamodb:ListTables |
NoSQL table inventory. | |
elasticache:DescribeCacheClusters |
In-memory cache tracking. | |
elasticmapreduce:ListClusters |
Big data cluster inventory. | |
redshift:DescribeClusters |
Data warehouse tracking. | |
sagemaker:ListNotebookInstances |
ML notebook monitoring. | |
ecs:ListClusters |
Container cluster inventory. | |
eks:ListClusters |
Kubernetes cluster inventory. | |
apprunner:ListServices |
App Runner service tracking. | |
states:ListStateMachines |
Step Functions monitoring. | |
glue:GetDatabases |
Data catalog inventory. | |
transfer:ListServers |
Transfer Family tracking. | |
sns:ListTopics |
Pub/Sub topic inventory. | |
sqs:ListQueues |
Message queue tracking. | |
kms:ListKeys |
KMS Key tracking. | |
secretsmanager:ListSecrets |
Secrets Manager tracking. | |
ec2:DescribeVolumes |
EBS Volume tracking. | |
efs:DescribeFileSystems |
EFS File System tracking. | |
elbv2:DescribeLoadBalancers |
ELB Load Balancer tracking. | |
ec2:DescribeNatGateways |
NAT Gateway tracking. |
๐ ๏ธ Commands & Usage
๐ report
Generate comprehensive cost and usage reports.
| Argument | Shortcut | Type / Choices | Default | Description |
|---|---|---|---|---|
--type |
-t |
breakdown, trend, account, full |
full |
Report type. |
--format |
-f |
pdf, excel, csv, markdown, json |
pdf |
Output format. |
--days |
-d |
int |
30 |
Lookback period in days. |
--start |
YYYY-MM-DD |
Start date. | ||
--end |
YYYY-MM-DD |
End date. | ||
--metric |
UnblendedCost, BlendedCost, NetUnblendedCost, AmortizedCost, UsageQuantity |
UnblendedCost |
Cost metric. | |
--group-by |
SERVICE, LINKED_ACCOUNT, REGION, USAGE_TYPE |
Group results by dimension. | ||
--service |
-s |
string |
Filter by one or more AWS services (e.g., ec2 s3). Supports smart aliases. |
|
--include-charts |
flag | True |
Include visual charts in the report. | |
--chart-labels |
flag | True |
Show minimalistic X and Y axis values on charts. | |
--output |
-o |
path |
Output file path. | |
--profile |
-p |
string |
AWS profile name. | |
--region |
-r |
string |
AWS region. |
# Generate a monthly breakdown in PDF for the last 30 days
remora-fin report --type breakdown --format pdf --output monthly_report.pdf
# Generate a dedicated report for EC2 and S3 with axis labels
remora-fin report --service ec2 s3 --type full --format pdf --chart-labels
# Export cost data in JSON format for external analysis
remora-fin report --type trend --format json --days 60
๐ anomalies
Detect and display AWS cost anomalies using ML-based detection.
| Argument | Shortcut | Type / Choices | Default | Description |
|---|---|---|---|---|
--days |
-d |
int |
30 |
Lookback period (max 90). |
--start |
YYYY-MM-DD |
Start date. | ||
--end |
YYYY-MM-DD |
End date. | ||
--severity |
low, medium, high, critical |
Filter by severity. | ||
--monitor-arn |
string |
Filter by specific monitor ARN. | ||
--detail |
flag | Show detailed anomaly list. | ||
--json |
flag | Output as JSON. | ||
--profile |
-p |
string |
AWS profile name. | |
--region |
-r |
string |
AWS region. |
# Detect anomalies in the last 60 days
remora-fin anomalies --days 60 --severity high
๐ฎ forecast
Predict future AWS costs using ML-based forecasting.
| Argument | Shortcut | Type / Choices | Default | Description |
|---|---|---|---|---|
--days |
-d |
int |
30 |
Days to forecast (max 365). |
--start |
YYYY-MM-DD |
Forecast start date. | ||
--end |
YYYY-MM-DD |
End date. | ||
--metric |
UnblendedCost, BlendedCost, NetUnblendedCost, AmortizedCost, UsageQuantity |
UnblendedCost |
Metric to forecast. | |
--granularity |
DAILY, MONTHLY |
DAILY |
Forecast granularity. | |
--group-by-type |
DIMENSION, TAG, COST_CATEGORY |
Group forecast by type. | ||
--group-by-key |
SERVICE, LINKED_ACCOUNT, REGION, USAGE_TYPE, INSTANCE_TYPE, PLATFORM |
Group forecast by key. | ||
--scenarios |
flag | Show what-if scenario analysis. | ||
--json |
flag | Output as JSON. | ||
--profile |
-p |
string |
AWS profile name. | |
--region |
-r |
string |
AWS region. |
# Forecast next 30 days of spend
remora-fin forecast --days 30 --scenarios
๐ฅ๏ธ dashboard
Launch the interactive Terminal User Interface.
| Argument | Shortcut | Type / Choices | Default | Description |
|---|---|---|---|---|
--days |
-d |
int |
Default period in days. | |
--theme |
dark, light |
UI theme. | ||
--profile |
-p |
string |
AWS profile name. | |
--region |
-r |
string |
AWS region. |
remora-fin dashboard --days 60 --theme dark
๐ utilization
Analyze resource efficiency by correlating cost with CloudWatch metrics and Pricing API.
| Argument | Shortcut | Type / Choices | Default | Description |
|---|---|---|---|---|
--days |
-d |
int |
7 |
Lookback period for metrics. |
--profile |
-p |
string |
AWS profile name. | |
--region |
-r |
string |
AWS region. |
# Analyze EC2 efficiency for the last 7 days
remora-fin utilization --days 7
๐ login
Configure and test AWS credentials.
| Argument | Shortcut | Type / Choices | Default | Description |
|---|---|---|---|---|
--profile |
-p |
string |
default |
AWS profile name. |
--region |
-r |
string |
AWS region. | |
--test |
-t |
flag | Test existing credentials. | |
--configure |
-c |
flag | Interactive configuration. |
# Configure interactively
remora-fin login --configure
# Test existing credentials
remora-fin login --test
๐ค profile
View current remora-fin configuration and AWS session identity.
remora-fin profile
๐ค Contributing
Contributions are welcome!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
๐ ๏ธ Development
Remora-Fin uses uv for high-performance dependency management and multi-version Python testing.
Testing across Python versions
You can easily run the test suite against different Python versions without manual installation:
# Test with Python 3.12 (Default)
uv run --python 3.12 pytest tests/
# Test with Python 3.13
uv run --python 3.13 pytest tests/
If a specific Python version is not found on your system, uv will automatically download and manage it for you.
๐ License
Distributed under the MIT License. See LICENSE for more information.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file remora_fin-1.0.5.tar.gz.
File metadata
- Download URL: remora_fin-1.0.5.tar.gz
- Upload date:
- Size: 67.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52d44520fdc949e01c1a42f49eb2a89399b2e6745d7e3fb6d439b9e4f8defeb7
|
|
| MD5 |
bb7c7c140298b3b505c294fbd1b37339
|
|
| BLAKE2b-256 |
154f6d5f04cea70f46df21483d038473408e267bd5d3d8a0a942843c12085e5e
|
File details
Details for the file remora_fin-1.0.5-py3-none-any.whl.
File metadata
- Download URL: remora_fin-1.0.5-py3-none-any.whl
- Upload date:
- Size: 92.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ccbf02bf73148c3fd1f8203a2beea23a41025193bbdc78d098da324223529ad2
|
|
| MD5 |
7c6e03dd0ea7bad18a8685211acdb554
|
|
| BLAKE2b-256 |
ee108dc7f1040c44eed09539e39b359ec53e6308c7eb9fa2401ffd84cb8f4deb
|