{"id":21047842,"url":"https://github.com/opsdisk/aquabot_lambda","last_synced_at":"2025-07-29T21:35:08.118Z","repository":{"id":94246637,"uuid":"142712296","full_name":"opsdisk/aquabot_lambda","owner":"opsdisk","description":"AWS Lambda implementation of aquabot","archived":false,"fork":false,"pushed_at":"2018-12-28T22:35:22.000Z","size":3,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-05T14:56:14.881Z","etag":null,"topics":["lambda","python","twitter"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opsdisk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-28T21:49:28.000Z","updated_at":"2023-09-08T17:43:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"93b664ae-c093-4d99-8653-3d245b4c92a6","html_url":"https://github.com/opsdisk/aquabot_lambda","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opsdisk%2Faquabot_lambda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opsdisk%2Faquabot_lambda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opsdisk%2Faquabot_lambda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opsdisk%2Faquabot_lambda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opsdisk","download_url":"https://codeload.github.com/opsdisk/aquabot_lambda/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243495484,"owners_count":20299921,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lambda","python","twitter"],"created_at":"2024-11-19T14:38:28.435Z","updated_at":"2025-03-13T22:40:41.067Z","avatar_url":"https://github.com/opsdisk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Python script to Lambda function\nThis is a project that turned the [aquabot Python script](https://github.com/opsdisk/aquabot) into an AWS Lambda function.\n\n# Basic Setup\n\n* CloudWatch Event trigger cron job in UTC: `cron(15 16 * * ? *)` - replaces time.sleep() in a while loop.\n* No VPC\n* Handler: `aquabot.lambda_handler`\n* Role has `AWSLambdaBasicExecutionRole` and `AWSLambdaMicroserviceExecutionRole` policies\n* Security Group: Outbound 443 only for data.edwardsaquifer.org and twitter.com\n* Test event is an empty dictionary: `{}`\n* Can read twitter_creds.json; tested with environment variables and that also worked.\n\n# Create a .zip deployment package\n\nThe .zip file contains all the code and the additional libraries installed (through pip).\n\n## No virtualenv\n\n```bash\ncd aquabot_lambda\npip3 install -r requirements.txt -t .\nzip -qr9 ../lambdapackage.zip .\n```\n\n## virtualenv\n\n* Easiest to create virtual environment in the parent folder of the project\n* Then add site-packages directory after initially creating the zip folder\n\n```bash\nvirtualenv -p python3 .venv\nsource .venv/bin/activate\npip install -r aquabot_lambda/requirements.txt\n```\n\n```bash\ncd aquabot_lambda\nzip -qr9 ../lambdapackage.zip .\ncd $VIRTUAL_ENV/lib/python3.6/site-packages\nzip -qru9 ../../../../lambdapackage.zip .\ncd -\ndeactivate\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopsdisk%2Faquabot_lambda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopsdisk%2Faquabot_lambda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopsdisk%2Faquabot_lambda/lists"}