Skullabs/kikaha

AWS codeploy validate.sh improvement

roneigebert opened this issue · 4 comments

The generated validate.sh file waits a fixed time (it can be changed - parameter on pom.xml) to validate if the service started. I think it can be improved:

Current appspec.yml
validate service step timeout: 3600 seconds

Current validate.sh
sleep [fixed time|default 10 seconds]
if [service if not up]{
raise error
}

Desired appspec.yml
validate service step timeout: [fixed time|default 10 seconds]

Desired validate.sh
while [service is not UP]{
sleep 1 second
}

miere commented
miere commented

Any thoughts on this, mate?

Sorry for my delay @miere. Yesterday we talked about it here (Ibratan, @jardelnovaes).. We want to send a PR soon