- Newest
- Most votes
- Most comments
The issue you're experiencing with the EC2 AMI creation incorrectly including ephemeral volumes is unusual and concerning. Typically, when creating an AMI from an EC2 instance, it should only include the block device mappings for the volumes that are actually attached to the instance. In your case, since you only have a root volume, the AMI should only include that.
The fact that the AMI is including 26 ephemeral volumes (xvdca through xvdcz) suggests there might be an underlying configuration issue with the source instance or a potential bug in the AMI creation process.
Here are some additional troubleshooting steps and suggestions:
-
Double-check the block device mappings of the source instance: Use the AWS CLI command
aws ec2 describe-instances --instance-id your-instance-id
to verify that the instance truly only has the root volume attached. -
Examine the AMI details: After creating the AMI, use the
aws ec2 describe-images --image-id your-ami-id
command to inspect the block device mappings of the created AMI. This will help you understand what's actually being included in the AMI. -
Try creating the AMI without specifying block device mappings: Instead of explicitly defining the block device mappings, try creating the AMI without any block device mapping parameters. This should, in theory, create an AMI that mirrors the exact configuration of the source instance.
-
Check for any custom AMI creation scripts or processes: Ensure that there are no custom scripts or processes in your environment that might be interfering with the AMI creation process.
-
Verify the instance type: Confirm that the instance type you're using doesn't have any special considerations for block device mappings. Some instance types, like M3, have specific requirements for instance store volumes.
-
Consider creating a new EC2 instance: As a test, you could create a new EC2 instance from a standard Windows AMI, ensure it only has a root volume, and then try creating an AMI from this new instance. This could help isolate whether the issue is specific to your original instance or a more general problem.
-
Contact AWS Support: If the issue persists after trying these steps, it would be advisable to contact AWS Support. This behavior seems abnormal and could potentially be a bug in the AMI creation process that AWS needs to address.
Remember, when launching instances from your AMI, ensure that you're not specifying any additional block device mappings that could interfere with the instance's ability to boot properly. The "Instance reachability check" failure suggests that the instance is unable to start correctly, which could be related to these unexpected ephemeral volume mappings.
If none of these steps resolve the issue, working directly with AWS Support would be the best course of action to diagnose and resolve this unusual behavior.
Sources
Troubleshoot Amazon EC2 instance launch issues - Amazon Elastic Compute Cloud
Add block device mappings to an AMI - Amazon Elastic Compute Cloud
create-image — AWS CLI 2.27.8 Command Reference
Relevant content
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 6 months ago