Update ec2.go

fixes compilation error