Runbook

EC2 instance immediate termination after attempting to launch.

Back to Runbooks

Overview

This incident type refers to the immediate termination of an EC2 instance after attempting to launch it. There are various reasons why this can occur, such as exceeding EBS volume limits, corrupted EBS snapshots, encrypted root EBS volumes without proper permissions, missing parts in instance store-backed AMIs, among others. The solution to this incident type depends on the termination reason, and it may involve deleting unused volumes or ensuring proper permissions to access AWS KMS keys.

Parameters

Debug

Get the instance ID of the terminated instance

Check if the instance exceeded EBS volume limits

Check if an EBS snapshot is corrupted

Check if the root EBS volume is encrypted

Check if a snapshot specified in the block device mapping for the AMI is encrypted

Check if the instance store-backed AMI is missing a required part

Get the termination reason of the instance

Repair

Delete the unused volumes to free up space if EBS volume limits are exceeded.

Request the access to the KMS key if the root EBS volume is encrypted and the user does not have permissions to access the KMS key for decryption.

Learn more

Related Runbooks

Check out these related runbooks to help you debug and resolve similar issues.