My scrapbook about anything which I learned or want to remember, Sometime about tech tips, thoughts and rambling. If you find anything useful don't forget to give thumbs-up :)

Breaking

Tuesday, March 9, 2021

Enabling a GCP VM to access All other Google API

There are lots of way to access Google APIs whether it is User/Group Authorization and Service Account via IAM. In this post, we are going to enable a Google VM instance to access all other Google APIs to manipulate the resources. 

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. 



Like the below page to get the update  
Facebook Page      Facebook Group      Twitter Feed      Telegram Group



No comments:

Post a Comment

Disclaimer

The postings on this site are my own and don't necessarily represent IBM's or other companies positions, strategies or opinions. All content provided on this blog is for informational purposes and knowledge sharing only.
The owner of this blog makes no representations as to the accuracy or completeness of any information on this site or found by following any link on this site. The owner will not be liable for any errors or omissions in this information nor for the availability of this information. The owner will not be liable for any losses, injuries, or damages from the display or use of his information.