Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS EC2 Instance stopping right after start using boto3

Using boto3 run_instances

The instance is stopping after 30 sec by itself and the State transition reason in the console shows:

Client.InstanceInitiatedShutdown: Instance initiated shutdown

What might be the issue?

like image 376
Dmitry R Avatar asked Aug 25 '16 01:08

Dmitry R


1 Answers

Check if your AMI type (PV or HVM) and the volumes are compatible and you are mounting the volumes to the correct device. If there is a compatibility issue, the instance shuts down with Client.InstanceInitiatedShutdown: Instance initiated shutdown

like image 153
helloV Avatar answered Sep 19 '22 10:09

helloV