AWS Lambda Function used to make scheduled or recurring purchases through Coinbase Pro. This lambda function is invoked by a scheduled CloudWatch Event.
Desired zip file structure. handler=func.main.event_handler
dependency_one/
dependency_two/
func
main.py # event handler
other.py
tests/
You must first include your requirements in the lambda_requirements.txt file. Then install lambda dependencies into a designated folder
pip install -r lambda_requirements.txt -t dependencies
Combine content in dependencies and func folder in lambda.zip
file
# PowerShell
Compress-Archive -Path func, dependencies/* -DestinationPath lambda.zip -F