aws-samples / aws-parallelcluster-monitoring

Monitoring Dashboard for AWS ParallelCluster
MIT No Attribution
31 stars 23 forks source link

Region long names inconsistent between API and Botocore #11

Closed bollig closed 9 months ago

bollig commented 2 years ago

https://github.com/aws-samples/aws-parallelcluster-monitoring/blob/e92abfce17a9a274558ee7deaeeccd09d86635d1/custom-metrics/1m-cost-metrics.sh#L13

eu-west-1 => "Europe (Ireland)" here when using the botocore library (see https://github.com/boto/botocore/blob/develop/botocore/data/endpoints.json)

our get-pricing api requires eu-west-1 => "EU (Ireland)"

a quick fix is to add a patch:

aws_region_long_name=${aws_region_long_name/Europe/EU}