FYI: l'istanza AWS t2.micro è troppo piccola. Usare almeno t2.small

Also, how big was the swapfile you created?