Tuesday 16 April 2019

How to resolve if our Instance Terminates Immediately by Raj Gupta

If our instance goes from the pending state to the terminated state immediately after restarting it.



To get the termination reason using the Amazon EC2 console

Open EC2 console  --> select the instance -->  Description tab --> State transition reason message



To get the termination reason using the AWS Command Line Interface

Run the below command in a system in which AWS CLI tool is already installed.

[root@ip-172-31-93-246 ~]# aws ec2 describe-instances --instance-id i-0f2bfd564d234f03f

Then you will get output like below with error details:-

"StateReason": {
 "Message": "Client.VolumeLimitExceeded: Volume limit exceeded", "Code": "Server.InternalError" },

• If the reason is Client.VolumeLimitExceeded: Volume limit exceeded, you have reached your EBS volume limit. We need to create ticket to increase EBS volume limit.

• If the reason is Client.InternalError: Client error on launch, that typically indicates that the root volume is encrypted and that you do not have permissions to access the KMS key for decryption.
To get permissions to access the required KMS key, add the appropriate KMS permissions to your IAM user.

1 comment:

  1. Hello everyone , here’s your opportunity for you to achieve your dreams of being a multi million dollar rich through trading , I once loss all I got through trading but was fortunate to come across a woman with great virtue and selfless heart (Mary ) i was introduce to her masterclass strategy while searching online which has revived me of all my losses and made me gain more and more . With her unique strategy you are entitled to daily signals and instant withdraw ,be rest assured of getting a refund of all your loss investment with any platform that has denied you in one way or the other in getting your money . Mrs Mary masterclass strategy is simply the best for beginners and those that are finding it difficult to succeed through trading she’ll help you with just a simple step . Email her ( maryshea03 @ Gmail .com) WhatsApp +1 562 384 7738 . Remember this is absolutely free!!!

    ReplyDelete