Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

iot-dr-r53-health-checker.py is not resetting RECEIVED_COUNT and RECEIVED_ALL_EVENT #2

Open
brnaba-aws opened this issue Jan 26, 2023 · 1 comment

Comments

@brnaba-aws
Copy link

After the first lambda execution, if the publish and received worked, then changing the iot policy will have no effect on the code.
RECEIVED_COUNT and RECEIVED_ALL_EVENT are never reset, so on the next execution, their value are the same.
You have to wait the next lambda execution environment to have those value reset.
Expected behaviour: Changing iot policy should impact current lambda execution environment.
How to fix: Reset those 2 variables before exiting lambda.

@brnaba-aws
Copy link
Author

brnaba-aws commented Jan 26, 2023

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant