ec2 swap sample.