aws-health-aware icon indicating copy to clipboard operation
aws-health-aware copied to clipboard

Correct the lookup of the health endpoint to avoid caching when the lambda is warm.

Open grahamhar opened this issue 3 years ago • 0 comments

This is an attempt to fix the issue reported in issue: https://github.com/aws-samples/aws-health-aware/issues/16

Description of changes:

Setting the boto config via a lookup done at the global level of file means that a change in the active region would not be picked up if the lambda was warm. I've added test cases as I prefer to work on code with tests, feel free to remove them if prefer.

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

grahamhar avatar Oct 08 '21 16:10 grahamhar