bcgov / cloud-pathfinder

This is the technology and UX backend repo for the cloud pathfinder ZenHub task board
https://app.zenhub.com/workspaces/cloud-pathfinder-5e4dbb426c3c6af8dcbf06a7/board?repos=241742911
Creative Commons Zero v1.0 Universal
2 stars 8 forks source link

[Spike] Undiscounted price calculation for cost recovery #3101

Open ThibaultBC opened 4 weeks ago

ThibaultBC commented 4 weeks ago

As we progress with cloud economics optimization and cost recovery improvements, we need a better understanding on how to best assign raw costs to clients, and understand how to differentiate costs that is discounted and pre-discount.

This investigation should focus on the following outcomes:

  1. Assess and confirm the current status: We have a savings plan active in the SEA Live, who is getting the discount: customer teams, or ourselves?

Confirm feasibility and complexity to build a cost recovery report that assigns raw (undiscounted) costs to teams, after:

  1. Savings Plan (committed savings on steady compute at the central account level - consumed by any teams in LIVE).
  2. Private Pricing Agreement (top level $ spending commitment for the entire payer account, regardless of type of service used).
  3. Reserved instances: Those would be reserved by teams, and the question we must answer is, after implementing 2. and 3., is it still possible to assign RI savings directly to teams who reserved them - but only RI saving, and not an additional discount that'd be coming from the private pricing agreement. To be extra clear, let's say they are getting a 50% discount on a Reserved instance, and we also have a top level 10% PPA. A raw $100 of cost for that instance would be discounted to $50 for the team and then 10% for us so 5$. The total paid to AWS would be $45, the team is charged back $50, and we keep $5.
  4. Report back findings with PO and TL, next steps will be created subsequenlty