r/awslambda • u/Mmetr • Aug 08 '20
How to trigger my python script in AWS?
I have a script that needs to run every time a specific email is sent with a specific attachment. I need to run this script using AWS.
I am wondering what the best way would be to:
Trigger the script in AWS
Access the CSV in the email attachment
2
Upvotes
1
u/Romie_13 Aug 08 '20
Create a Lambda.
Create 2 cloudwatch rules (generate, notify) that will trigger the lambda at regular intervals, based on needs.
Lambda can use S3 to temporarily store the CSV.
Post sending the mail delete the file from S3.
1
u/hungryballs Aug 08 '20
What’s sending the email that triggers the script to run?