Problem: Amazon EC2 auto recovery fails if machine image has ephemeral block device mappings defined (even when no instance store volumes are attached).
Solutions:
- Specify custom block device mapping during instance launch.
- Rebuild Ubuntu AMI (with automation).
This post shows how to achieve the later using
Packer by
HashiCorp.