developmentseed / developmentseed/eoapi-cdk
The cloud-init status check in `pgbouncer-health-check` may not retry
- Dominant language
- Python
- Stars
- 29
- Forks
- 6
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 7
Description
https://github.com/developmentseed/eoapi-cdk/blob/main/lib/database/lambda/pgbouncer-health-check/health-check.sh#L14
I believe that there's a chance the loop in this status check doesn't work properly. If the status returns WAITING with a status of 2 then `set -euo pipefail` might fail this. I have a screenshot of SSM trying to run this command, then exiting with no message with a status of 2. The only explanation I could think of is exiting from the `cloud-init` status check.
A possible solution is to let `cloud-init` do the wait interally (`--wait`).
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.