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

ความคิดเห็น • 8

  • @aaronjacob5384
    @aaronjacob5384 4 หลายเดือนก่อน

    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?

    • @awsclouddemos
      @awsclouddemos  4 หลายเดือนก่อน

      have you subscribed to notification which you must have got when you received email for permission from AWS?

  • @teerathepthongkul3029
    @teerathepthongkul3029 ปีที่แล้ว +1

    Is it possible that the file which upload on S3 also send to email in the attachment file?

    • @awsclouddemos
      @awsclouddemos  ปีที่แล้ว +1

      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)

  • @bestquotes2765
    @bestquotes2765 ปีที่แล้ว

    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?.

    • @awsclouddemos
      @awsclouddemos  ปีที่แล้ว

      yes you should be able to do it

  • @mosesjayaprakash
    @mosesjayaprakash ปีที่แล้ว

    you are too fast, moving the screen too fast too.. it will be helpful if you can slowly explain

    • @awsclouddemos
      @awsclouddemos  ปีที่แล้ว

      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.