- Build the binary.
- Run the binary:
gce-impersonation-proxy -I [email protected] -D BIND-ADDRESS:PORT
- Change
/etc/hosts
to pointmetadata.google.internal
to127.0.0.1
. - Run any command like
gsutil
and you should be impersonating service account you specified.