ec2-driver: Added gate checks

Change-Id: Id4860ce82fe82214b06b0936c0274cee2b159e22
Merge "ec2-driver: Added gate checks"