开始使用boto3之后,AWS EC2实例立即停止 [英] AWS EC2 Instance stopping right after start using boto3
本文介绍了开始使用boto3之后,AWS EC2实例立即停止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用boto3 run_instances
Using boto3 run_instances
实例将在30秒后自行停止,并且控制台中的状态转换原因显示为:
The instance is stopping after 30 sec by itself and the State transition reason in the console shows:
Client.InstanceInitiatedShutdown: Instance initiated shutdown
可能是什么问题?
推荐答案
检查AMI类型(PV或HVM)和卷是否兼容,以及您是否将卷安装到正确的设备上.如果存在兼容性问题,则使用 Client.InstanceInitiatedShutdown关闭实例:实例启动关闭
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
这篇关于开始使用boto3之后,AWS EC2实例立即停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文