Some AWS EC2 Tips

December 18, 2019    aws ec2 tips

  • Choosing right instance size

Choosing Right Ec2 instance size

  • Why is my Linux instance not booting after I changed its type to C5 or M5?

See https://aws.amazon.com/premiumsupport/knowledge-center/boot-error-linux-m5-c5/

  • Make sure enaSupport instance attribute is enabled

aws ec2 describe-instances –instance-ids instance_id –query “Reservations[].Instances[].EnaSupport“

  • Make sure both ENA and NVMe modules are installed

modinfo ena

lsinitrd /boot/initramfs-$(uname -r).img|grep nvme

  • Mount EBS volumes using UUID/Label instead of device name

/dev/sda1 -> UUID=“ca774df7-756d-4261-a3f1-76038323e572”