You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the error handling strategy for entities missing Cost Insights-related annotations (aws.amazon.com/cost-insights-cost-categories or aws.amazon.com/cost-insights-tags) only displays a generic internal server error (500) without providing any meaningful context. It would be beneficial to display a clear hint suggesting the need to add the required tagging, rather than just showing the error. This enhancement would improve usability and make troubleshooting easier.
Additionally, Our company has some generic group entities assigned to users purely for RBAC (Role-Based Access Control) management purposes. These entities do not represent actual teams in the AWS environment, so they are not expected to include any Cost Insights-related annotations in their catalog-info.yaml files. Currently, if these groups being the first result returned by the getUserGroups method, the Overview page redirects users to an internal error page. This behavior provides no option to switch to a different team from the UI. The only way to "escape" from the error would be manually update the team name in the URL. This is unintuitive for users.
🎤 Context
For the first problem, displaying an instruction similar to what TechDocs does:
For the second problem, we could filter out groups that lack the appropriate annotations. Another possible solution would be to make the CostExplorerClient class public, allowing developers to manually override the logic in some of its methods.
✌️ Possible Implementation
One possible implementation for the second problem is:
Hi @niallthomson At first, I didn’t take a closer look at how it could be implemented. After taking a deeper look, yes, it is an upstream problem. I will create an issue there.
As for my fix, no, it won’t help with the first issue.
Hi there, is there any configure that will not use annotation to check the cost. I only want to know the costs for a aws account. Not group by any annotation.
🔖 Feature description
Currently, the error handling strategy for entities missing Cost Insights-related annotations (
aws.amazon.com/cost-insights-cost-categories
oraws.amazon.com/cost-insights-tags
) only displays a generic internal server error (500) without providing any meaningful context. It would be beneficial to display a clear hint suggesting the need to add the required tagging, rather than just showing the error. This enhancement would improve usability and make troubleshooting easier.Additionally, Our company has some generic group entities assigned to users purely for RBAC (Role-Based Access Control) management purposes. These entities do not represent actual teams in the AWS environment, so they are not expected to include any Cost Insights-related annotations in their catalog-info.yaml files. Currently, if these groups being the first result returned by the getUserGroups method, the Overview page redirects users to an internal error page. This behavior provides no option to switch to a different team from the UI. The only way to "escape" from the error would be manually update the team name in the URL. This is unintuitive for users.
🎤 Context
For the first problem, displaying an instruction similar to what TechDocs does:

For the second problem, we could filter out groups that lack the appropriate annotations. Another possible solution would be to make the
CostExplorerClient
class public, allowing developers to manually override the logic in some of its methods.✌️ Possible Implementation
One possible implementation for the second problem is:
The text was updated successfully, but these errors were encountered: