-
Notifications
You must be signed in to change notification settings - Fork 53
Description
Customer Domain: GFS-SI
Prioriry: High
Situation:
-
Customer wanted to leverage the existing CID dashboard for Rightsizing information and share it back across to the different business units (BU) to optimize their AWS infrastructure spend whilst identifying opportunities to save costs.
-
The existing dashboard, post deployment had issues and the Lambda underneath feeding the data was breaking.
Task:
-
Unblock the customer and ensure that the dashboard functions as expected.
-
Ensure the patch fix gets back-ported into our knowledge base.
-
The problem lies in the AWS Cost Explorer API's limitations. When you call get_rightsizing_recommendation() with a PageSize of 5000, you're exceeding the maximum allowed page size for this particular API.
-
AWS Cost Explorer's GetRightsizingRecommendation API has a maximum page size limit of 1000 items per request, not 5000. When you attempted to request 5000 items at once, the API rejected your request, causing the error.
Action:
- This updated code fixes the issue with the Lambda, retrospectively the CID dashboard.
Result:
- TAM shared an updated and patched codebase for the Lambda that the customer used and has now fixed their issue in Production.