In the situation where OPA is unreachable, this post will just hang and cloudformation will fail the hook after 30 seconds. This causes the hook logs in cloudwatch to end at Hook triggered for target....
Adding a timeout allows the post to fail and properly log the failed connection. Happy to make it a different value but 10 seconds seemed reasonable.
In the situation where OPA is unreachable, this post will just hang and cloudformation will fail the hook after 30 seconds. This causes the hook logs in cloudwatch to end at
Hook triggered for target...
.Adding a timeout allows the post to fail and properly log the failed connection. Happy to make it a different value but 10 seconds seemed reasonable.