Skip to content

[CC-006] Hardcoded cost categories for backup services #15

@LFigg

Description

@LFigg

Description

Cost categories for backup/snapshot services are hardcoded in the source, making it difficult to update when cloud providers add new services.

Location

  • File: cost_collect.py - Service filtering logic

Impact

  • New backup services may be missed
  • Requires code changes to add new service types

Suggested Fix

Move to configuration or constants file:

# lib/constants.py
AWS_BACKUP_SERVICES = [
    'AWS Backup',
    'Amazon EC2 - EBS Snapshots',
    'Amazon S3',
    'Amazon RDS',
    ...
]

AZURE_BACKUP_SERVICES = [
    'Azure Backup',
    'Azure Site Recovery',
    ...
]

Or allow config file override for custom service mappings.

Priority

Low

Source

cost_collect.py code review - CC-006

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions