Created module.from_json and switched ec2 to use it