{ok, ...} | {error, ...} signature to ec2 api

{ok, ...} | {error, ...} signature to ec2 api.