komiser
komiser copied to clipboard
Cost calculations for Amazon EBS volumes is either missing or incorrect
Describe the solution you'd like
A checklist for cost calculation of each resource
- [ ] Fetch price info using AWS SDK price module using
Amazon EBS
service code and appropriate filters. - [ ] Get flat price map using util function
GetPriceMap
from utils.go - [ ] Using EC2 client fetch the resource objects Docs AWS service Go SDK
- [ ] Fetch usage metrics using AWS SDK cloudwatch module AWS usage metrics EBS metrics
- [ ] Calculate the cost according to EC2 AWS documentation Link to AWS EBS pricing
For inspiration take a look at AWS Lambda
Docs AWS service Go SDK link is not working here is updated