This simple python script fetches target groups (from elbv2 AWS API) and dumps it to google spreadsheets. You only need to provide the spreadsheet URL as input and you are good to go!
NOTE: I have built this using python v3.6. In case you are using an older version of python and run into issues, do let me know!
How to use:
-
Clone the repo.
git clone https://github.com/C2L2C/Tg-2-sheets.git
-
Create a new google project, enable sheets API and generate credentials (credentials.json) as follows:
-
Create a new google spreadsheet and share it with the email mentioned in the
client_email
field incredentials.json
generated from step 2. -
Run the script as follows:
python refreshTG.py
-
Provide the spreadsheets URL, would look something like this:
https://docs.google.com/spreadsheets/d/<spreadsheet_ID>/edit#gid=xxxxxxxx
-
Provide the spreadsheet name.
-
And you are done!
Thanks.