问题
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?
回答1:
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
来源:https://stackoverflow.com/questions/39135284/aws-ec2-instance-stopping-right-after-start-using-boto3