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.
Manual tests targeting demo environment with local changes (could not directly test deployment in us-gov-west-1)
If eu-west-1 is marked as not supported for cost_monitoring feature, no API calls is made to /cost-monitoring endpoint neither the tab is shown in cluster details page.
Viceversa, if eu-west-1 is supported for cost_monitoring feature API calls are executed successfully and the 'Cost monitoring' tab is shown as expected
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?
us-gov-west-1
)eu-west-1
is marked as not supported forcost_monitoring
feature, no API calls is made to/cost-monitoring
endpoint neither the tab is shown in cluster details page.eu-west-1
is supported forcost_monitoring
feature API calls are executed successfully and the 'Cost monitoring' tab is shown as expectedReferences
PR Quality Checklist
react-i18next
library (useTranslation hook and/or Trans component), see an example herenpm run build
builds without any errorIn 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.