Skip to content
This repository was archived by the owner on Jul 28, 2023. It is now read-only.
This repository was 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

@brnaba-aws

Description

@brnaba-aws

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions