I need to access to GCP's Compute Engine API in AWS Lambda using Python. API: https://cloud.google.com/compute/docs/reference/rest/v1
I need https://cloud.google.com/compute/docs/reference/rest/v1/disks/list and store the response in JSON format to my s3.
I had a few other queries with just API Key authentication, but this one seems to have OAuth2.0 authentication. So I'll need a bearer token for my API request.
I am relatively new to cloud computing and Python overall. I have already tried following https://stackoverflow.com/a/53472880/13676851 , but couldn't get my hand around it.
Can someone please help me to direct towards right resources to get OAuth2 Access Token / Bearer Token in the AWS Lambda using Python.