Skip to content

Providers

balakrishnagatla edited this page Nov 29, 2026 · 1 revision

Providers

Provider Install Credentials Status
aws .[aws] Standard AWS chain (env, AWS_PROFILE, role) Stable, tested on a real account
kubernetes .[k8s] Current kubeconfig context, or in-cluster service account Stable, tested on a real cluster in every CI run
azure .[azure] DefaultAzureCredential Beta
mock none none Demo environment for tests and talks

Pick providers with providers: in infralens.yaml, INFRALENS_PROVIDERS=aws,kubernetes, or -p aws -p kubernetes.

AWS

Category Check What it means
Cost savings idle_instance EC2 average CPU below idle_cpu_percent over idle_lookback_days
Cost savings stopped_instance Stopped longer than stopped_instance_days (attached volumes still bill)
Cost savings idle_database RDS with zero connections over the lookback
Cost savings unattached_volume EBS volume not attached to anything
Cost savings unassociated_ip Elastic IP not attached (billed hourly)
Cost savings old_snapshot Snapshot older than snapshot_max_age_days
Reliability alarm_firing CloudWatch alarm in ALARM
Reliability log_error_spike Errors in the last log_window_minutes at least error_spike_ratio× the baseline
Ownership missing tags Resource without the required_tags

Changes come from CloudTrail write events. Options under provider_options.aws: profile, log_groups, max_log_groups, ignore_change_sources. Required permissions: iam_policy.json.

Kubernetes

Category Check What it means
Cost savings unused_volume_claim PVC not mounted by any pod
Cost savings released_volume PV in Released state, still billing
Cost savings idle_load_balancer LoadBalancer Service with no ready endpoints
Reliability crash_loop CrashLoopBackOff, or 3+ restarts with a failing exit code
Reliability oom_killed Container killed for running out of memory
Reliability pod_pending Pending longer than pending_minutes
Reliability node_not_ready Node reporting NotReady
Ownership missing labels Deployments and StatefulSets without the required labels

Changes come from Deployment rollouts (ReplicaSets and their change-cause). System namespaces are skipped. Options under provider_options.kubernetes: context, namespaces, pending_minutes, prices. Permissions: rbac.yaml (get/list only).

Azure (beta)

Unattached managed disks, stopped-but-not-deallocated VMs, unused public IPs, fired alerts, and Activity Log changes. Set provider_options.azure.subscription_id.

Pricing

Estimates use on-demand list prices from a built-in table (providers/pricing.py) to rank opportunities. They are not invoices. Override Kubernetes prices with provider_options.kubernetes.prices.

Want another cloud? See Adding a Provider.

Clone this wiki locally