How To Check Whether An EC2 Instance Has Finished Initialising?

Craig Godden-Payne
Mar 17, 2020 · 2 min read
Photo by Vladimir Anikeev on Unsplash

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…