I don’t know why or if it changed but ... do you actually need a swapfile or swap partition?
The times when it was needed for performance reasons are long gone. You should select an instance type with enough memory for your workload and you won’t need a swap space.
Check out Memory optimised EC2 instances with a lot more memory per CPU than the general ...
I figured out my own issues. My ufw was not setup correctly to do the NAT'ing correctly.
So I added the following to /etc/ufw/before.rules:
# NAT table rules
:POSTROUTING ACCEPT [0:0]
# Forward traffic through eth0 - Change to match you out-interface
-A POSTROUTING -s 192.168.2.0/24 -o ens5 -j MASQUERADE
# don't delete the 'COMMIT' line or these nat ...
Possibly you picked an instance type without a swap volume by default. Certain EC2 small memory instances launch with swap enabled on a tiny instance store swap volume.
Or, perhaps the swap space exists, but isn't being used due to some scripting or fstab change. Conform any swap devices found with lsblk --fs are in use.
Swap space still has use cases. ...
ssh requires the user used to login to server to have access to /home/username/.ssh. If you can't access the server with another user you can
stop the instance
launch a new instance with the EBS from the server attached to it
login to the new server and adjust the permissions for on the EBS
Consult this Q&A for the permissions you should have for the ....