Updating local ec2 module

(cherry picked from commit e1b4bc130f24d2aca255f6d18ac33fef654b9d51)