To deploy: 0. Create GroupMe bot
- Put handler in lambda function
- Run sls deploy (this will require the serverless.yml file in the same directory)
- Set AWS secrets (token, botID) to what is listed in your GroupMe developer portal.
- Set AWS IAM role for Lambda function to access secrets.
Debugging:
--Use CloudWatch to check if your Lambda function is being called (the URL endpoint should be in the configuration section of the function to insert into your groupme bot). Errors can be found in the CloudWatch Log Group for the Lambda Function.
--Unable to import module 'handler': cannot import name 'DEFAULT_CIPHERS' from 'urllib3.util.ssl_' --> urllib3 versions 2+ are not compatable with botocore as of December 4 2023. That's why requirements.txt specified urllib3<2. If auto initialized in lambda
environment delete and redeploy.