SWAP space on EC2 on separate volume

It’s an extension of my previous article – how to create SWAP on EC2 instance. This time, we are going to create separate volume.