-
Notifications
You must be signed in to change notification settings - Fork 3
[CC-006] Hardcoded cost categories for backup services #15
Copy link
Copy link
Open
Labels
Description
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
Reactions are currently unavailable