Create swap file for ec2 instances