Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EBS: Add disk_size param to calculate hourly usage & rate #526

Merged
merged 2 commits into from
Aug 16, 2024

Conversation

myersCody
Copy link
Contributor

Add a disk_size param to the ebs generator and use it to calculate the cost & usage amount.

I used this yaml file:

```---
  generators:
    - EBSGenerator:
        start_date: 2023-11-01
        product_sku: VEAJHRNBBBBD
        resource_id: 12345674
        disk_size: 10
        rate: 0.1
        tags:
          resourceTags/user:storageclass: gamma
          resourceTags/user:Mapping: d1
          resourceTags/user:Map: d2
        cost_category:
          costCategory/env: ephemeral



  accounts:
    payer: 9999999999999
    user:
      - 9999999999999
    currency_code: USD #can be changed when testing with foreign currency codes```

To produce this CSV file with these changes

November-2023-None.csv

@myersCody myersCody marked this pull request as ready for review August 15, 2024 14:56
Copy link

codecov bot commented Aug 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.9%. Comparing base (92ec26b) to head (14a3664).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##            main    #526     +/-   ##
=======================================
+ Coverage   93.8%   93.9%   +0.1%     
=======================================
  Files         62      62             
  Lines       4719    4719             
  Branches     671     671             
=======================================
+ Hits        4426    4431      +5     
+ Misses       153     151      -2     
+ Partials     140     137      -3     

@myersCody myersCody merged commit 1974bb0 into main Aug 16, 2024
4 checks passed
@myersCody myersCody deleted the cost-5340-daily-rate2 branch August 16, 2024 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants