Just built a new AMI recently, based on the latest 18.04. Did also an apt upgrade
when provisioning it, in order to have the latest packages as well.
Problem is that this new AMI has no swapfile in it, checked via swapon --show
. It uses 5.3.0-1030-aws kernel. Same image built 6 months ago with the same way (but no apt upgrade
done on top of it) which uses 4.15.0-1052-aws, does have a swapfile as expected.
The swapfile can be created at provisioning time too, but I am just curious on why this has changed since December.
What am I missing?