This is a simple way to setup a user with limited access power for short time, once his/her task has been completed, we can simply delete the VM. That way we dont have to setup a specific service account for the user. Remember, this solution works fine if we need quick access for short time. Do not use this way, if the User has a longer life to spend with GCP resources.
# Enabling All APIs access
==
# Enabling All Compute APIs access
==
# Enabling Other APIs access
==
Above commands are for demo purpose only, you have all the rights to change the zone, type, size and other configuration of VMs.
Once, the VM has been setup, User can use gcloud compute ssh VM_NAME command to login into the particular VM and voila! s/he is having google apis access to perform the task.
No comments:
Post a Comment