Update ec2.go

fixes compilation error
Merge pull request #186 from savaki/patch-1

Update ec2.go