aws / aws-parallelcluster-ui

Apache License 2.0
31 stars 18 forks source link

Disable Cost Monitoring in unsupported regions #240

Closed tmscarla closed 1 year ago

tmscarla commented 1 year ago

Description

Due to an issue with ParallelCluster UI 2023.05, deployment of PCUI in GovCloud west region fails with a Cloudformation error message. The issue is rooted in the fact that the Cost monitoring feature is not supported in GovCloud west region and trying to activate it will result in an error.

We have already provided a mitigation for our customers, which will enable them to deploy PCUI in GovCloud region.

The mitigation has some drawbacks: a list of API calls errors will appear on the PCUI console when performing cluster operations. This is due to the fact cost monitoring API calls are still performed in a region which does not support cost monitoring.

This PR solves the aforementioned issue by introducing a mechanism in featureFlagsProvider to disable a feature if not supported in a specific region.

Closes https://github.com/aws/aws-parallelcluster-ui/issues/236.

How Has This Been Tested?

References

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.