title: Check if EC2 instance finished initializing. Using the AWS Java SDK v2
body: <p>I am programatically spinning up an EC2 instance from the AWS Java SDK v2. I then associate an elastic IP address to this instance. This takes a couple minutes. AWS then initializes the instance. In the AWS console it looks like this...<a href="https://i.stack.imgur.com/q2s7K.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/q2s7K.jpg" alt="enter image description here"></a>
  I cannot ssh into this instance until the initialization completes. Is there a way to programatically check that the instance has completed initialization? I have seen the method describeInstances(), but to the best of my knowledge, the most relevant information this method's response contains is the instance's state. The state is "running" and is not therefore probably not the variable that indicates initializing status. Maybe there is a different variable or a different method that is helpful for monitoring this initialization process? Cheers.</p>