You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an issue in the code when the DNS is switching from one region to another.
We have noticed that when there is a failover from one region to another from the loadbalancer, although the health_active_region is changing, due to the fact that codeblock is not wrapped into a function or in the function handler, the code is not in warm state and wrong results are returned. Currently the initialisation of the config is done on the cold state. As a result when one runs the lambda every x minutes when a failover occurs it will return an error.
In the function logs we notice an error message like:
Client is configured with the deprecated endpoint: us-east-2
There is an issue in the code when the DNS is switching from one region to another.
We have noticed that when there is a failover from one region to another from the loadbalancer, although the health_active_region is changing, due to the fact that codeblock is not wrapped into a function or in the function handler, the code is not in warm state and wrong results are returned. Currently the initialisation of the config is done on the cold state. As a result when one runs the lambda every x minutes when a failover occurs it will return an error.
In the function logs we notice an error message like:
Client is configured with the deprecated endpoint: us-east-2
aws-health-aware/handler.py
Lines 24 to 38 in 6f047af
A solution for this issue could be to wrap the initialisations inside a function.
The text was updated successfully, but these errors were encountered: