I usually set this in gam.cfg
no_browser = true
Then you can do the web-based flows on another machine with guidance provided by gam along the way.
R
From:
'Tiago Jobling' via GAM for Google Workspace <google-ap...@googlegroups.com>
Date: Monday, January 9, 2023 at 3:31 PM
To: GAM for Google Workspace <google-ap...@googlegroups.com>
Subject: [GAM] Re: Running GAM in AWS Lambda function
[EXTERNAL EMAIL]
The content of this email is confidential and intended for the recipient specified in message only. It is strictly prohibited to share any part of this message with any
third party, without a written consent of the sender. If you received this message by mistake, please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.
--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
google-apps-man...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-apps-manager/042e35cf-b0f9-4bc6-a11c-ed896b73b591n%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/hW1z05jWln0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/DM8PR06MB7717EF36DAB239CB215CE7AC90FE9%40DM8PR06MB7717.namprd06.prod.outlook.com.
To my knowledge you don’t exactly.
Gam is designed to be installed on a google cloud console or similar machine that may not be “up” all the time but that the “state” is the same as when you left it.
If that isn’t true for you, then you are gonna have a difficult time.
I can’t address your Lambda question directly as I am not AWS user and haven’t tried to do this.
But I can say that GAM does write timestamps to its config file and its whole ~/.gam config directory is a requirement for usage including the python scripts themselves.
In a docker container I would volume mount the ~/.gam folder in its entirety.
Hope this helps.
Rance
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CANGrk2kU59%2BfUAkYE_4qR6tiaMMv9_bQRL2W9CvY6LWjuM79MQ%40mail.gmail.com.