9

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?

helloV
  • 50,176
  • 7
  • 137
  • 145
Dmitry R
  • 2,956
  • 4
  • 25
  • 45

1 Answers1

22

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

helloV
  • 50,176
  • 7
  • 137
  • 145
  • 6
    Thanks it worked, changed the OS of the AMI and the EC2 Linux mounts /dev/xvda and the old one was /dev/sda1 – Dmitry R Aug 25 '16 at 14:02