How To Check Whether An EC2 Instance Has Finished Initialising?
When working with EC2, sometimes you need to know whether AWS has finished creating the instance. There are many ways to do this, here are some the ones I have found work best.
Waiting for boot-finished flag to exist
When AWS have finished setting up the instance, it adds a file into the filesystem at…