AWS s3 on event notification trigger lambda (Amazon web services S3 to trigger lambda and SES)
ฝัง
- เผยแพร่เมื่อ 11 ก.ย. 2024
- Amazon web services S3 to trigger lambda and send email to the user using AWS Simple email service (SES) 📧
Github links 🚀
1. github.com/git...
2. github.com/git...
Draw.io
viewer.diagram...
#aws #awstutorialforbeginners #whatisaws #awstutorialforbeginners #amazonwebservices #amazonwebservicestutorial #awstrainingvideos #awscertification #awstraining
i followed your tutorial perfectly, everything got accepted by AWS but I am not receiving an email to my gmail account. What am I doing wrong?
have you subscribed to notification which you must have got when you received email for permission from AWS?
Is it possible that the file which upload on S3 also send to email in the attachment file?
yes you should also be able to attach the uploaded file to s3 as attachment in your email something like below..
s3.download_file(BUCKET_NAME, KEY, TMP_FILE_NAME)
ATTACHMENT = TMP_FILE_NAME
BODY_TEXT = "The Object file was uploaded to S3"
client = boto3.client('ses',region_name=AWS_REGION)
msg = MIMEMultipart()
# Add subject, from and to lines.
msg['Subject'] = SUBJECT
msg['From'] = SENDER
msg['To'] = RECIPIENT
textpart = MIMEText(BODY_TEXT)
msg.attach(textpart)
att = MIMEApplication(open(ATTACHMENT, 'rb').read())
att.add_header('Content-Disposition','attachment',filename=ATTACHMENT)
msg.attach(att)
Can we print the path of the file in lambda where we have done the changes in file . In case if the file is inside some path in that bucket?.
yes you should be able to do it
you are too fast, moving the screen too fast too.. it will be helpful if you can slowly explain
Thanks for the feedback Moses I really appreciate it. I will go little more smoother but also please try speed control on youtube video player.