snapshot of ec2 code