Skip to content

rickramgattie/gemini_stats_lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gemini_stats_lambda

Gemini Stats Lambda

Description

AWS Lambda app that will query the Gemini API for purchases and send an email with the amount bought, money spent, and the USD value of tokens current holdings.

Instructions

  1. Create a Python 3.8 AWS Lambda function and upload gemini_stats_lambda.py as the source code.
  2. Create a GMail App Password with the appropiate permissions and store it in Secrets Manager as gmail_app_password.
  3. Create a Gemini API Key with the appropiate permissions and store the secret and key in Secrets Manager as gemini_api_secret and gemini_api_key.
  4. Set the following environment variables
  1. Schedule Lambda with CloudWatch Events.

Notes:

  • I followed least privilege when creating my Gemini API key and GMail app password. I recommend you do the same.

About

Gemini Stats Lambda

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages