aws / aws-parallelcluster-ui

Apache License 2.0
31 stars 20 forks source link

Add enable cost monitoring button #199

Closed mendaomn closed 1 year ago

mendaomn commented 1 year ago

Description

This PR adds a button to enable cost monitoring for the current account. It handles the following scenarios:

In order to reduce calls to CostExplorer to a minimum, the cost monitoring status is optimistically set to true in case of success, instead of calling the GetCostMonitoringStatus again

This PR builds upon the work done with #195 . Even though #195 isn't merged yet, this is safe to merge as it is being protected by a feature flag.

Please note: copy is not definitive and hasn't been reviewed yet

Changes

Screenshots

image

Screenshot 2023-04-24 at 11 22 23 Screenshot 2023-04-24 at 11 22 37

How Has This Been Tested?

PR Quality Checklist

In order to increase the likelihood of your contribution being accepted, please make sure you have read both the Contributing Guidelines and the Project Guidelines

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.