aws-samples / aws-lambda-lifecycle-hooks-function

Using Auto Scaling lifecycle hooks, Lambda, and EC2 Run Command
Apache License 2.0
102 stars 61 forks source link

Correct array list empty error #14

Closed renxunsaky closed 4 years ago

renxunsaky commented 4 years ago

While the command history is not yet updated, we will get empty result for CommandInvocations, in this case, we need to wait a little and do a retry. Here, the sleep is not useful except we verify the CommandInvocations is not empty

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.