I'm having issue with this while loop. Even when the status is returned as online its still stuck in the while loop... any ideas would be amazing :)
$instance = "(opsworks instance id)"
$status = (Get-OPSInstance -InstanceId $instance -Region eu-west-1).Status.Trim()
Write-Host "Initial:$status"
while($status -ne 'online' -or $status -ne 'start_failed')
{
$status = (Get-OPSInstance -InstanceId $instance -Region eu-west-1).Status.Trim()
Write-Host "Next:$status!"
}