SlideShare ist ein Scribd-Unternehmen logo
1 von 11
Vmoksha Technologies
Commit-Deliver-Excel
Sending Exceptional
Detail
as
EMAIL
through
CONTENT
INTRODUCTION
PRE-REQUISITES
REQUIREMENTS
WORKFLOW
SOLUTION
IMPLEMENTATION
CONCLUSIONS
 INTRODUCTION
Amazon Simple Email Service (Amazon SES) is a highly scalable and cost-effective email service for developers and
businesses. Amazon SES eliminates the complexity and expenditure of building an in-house email solution or
licensing, installing, and operating a third-party email service for this type of email communication. In addition, the
service integrates with other AWS services, making it easy to send emails from applications being hosted on AWS.
 PREREQUISITES
• AWS SES
• AWS SNS
• AWS S3
• AWS Lambda
 REQUIREMENTS
When a user uploads an excel file to web console, each row data from the excel file should save into the database.
If this process got failed due to some exception, the exception error message must go to the configured email Id’s.
 WORKFLOW
We are using two lambda functions. One is used for uploading excel sheet to s3 bucket and another for sending
exceptional email to administrator.
When we are uploading excel sheet to s3 bucket, if any failure or exception occurs in that time, Excel
upload lambda function will send the error result to SNS (Simple Notification Service) and Exception email lambda
function will trigger the SNS and send an exceptional email to the administrator by using SES.
 Solution
Setting up Prerequisites
1) AWS SNS
Create a SNS Topic by following below steps,
Open AWS account à choose services as SNS
Click on Create Topic à give the Topic name and Display Name
Click on Create topic
2) AWS S3 Bucket
Create an AWS S3 Bucket with add permission and enable CORS configuration.
3) AWS Lambda
Two Lambda functions are required:
i) For reading excel file and saving each row data into concerned database
a) Create the lambda function using below code:
var s3file = s3.getObject(params,function (err,data){
if(err){
result.message = 'error while getting ' + key + 'from' + bucketName +' bucket name';
result.describtion = err;
context.fail(result);
}else{
var wstream = fs.createWriteStream('/tmp/user.xlsx');
wstream.write(data.Body , function(err){
if(err)
{ console.log(err);
} else{
exceltojson({
input: '/tmp/user.xlsx',
output: null,
},function(err, rest) {
if(err) {
result.message = 'error while reading the'+key+ ' file from '+bucketName;
} else{
maxCount = rest.length;
console.log('max count f rows in excel/cvs file = ' + maxCount);
ExcelData = rest;
}
}
}
b) Upload the Zip file containing NodeJS Code, which holds logic for reading the excel file and pushing each row
data into the concerned database by calling custom API.
c) Map AWS Lambda Trigger to AWS S3 when putObject() method invoked inside AWS S3.
ii) To send the exception email
a) Create lambda function using below code:
var ses = new aws.SES({
apiVersion: '2010-12-01'
});
// Generating params to send Email
var params = {
Destination: {},
Message: {
Subject: {
Data:Subject,
Charset: 'UTF-8'
},
Body: {
Html: {
Data: message,
Charset: 'UTF-8'
}
}
}
};
params.Destination.ToAddresses = [emailTOAddress];
params.Source = FromAddress;
// calling send email function
ses.sendEmail(params, function (err, data) {
if (err) {//failure message
result.message = err, err.stack;
console.log(result);
context.fail(result);
} else {//Sucess
result.message = 'Email send successfully';
result.data = data;
console.log(result);
context.succeed(result); } });
b) Map AWS Lambda Trigger to AWS SNS topic when any exception occurs in the first lambda function i.e. while
saving each row of excel file into the database.
 Implementation
Step 1: Upload the excel file directly into AWS S3 bucket
manually or through AWS SDK
Step 2: If everything goes well, all the records from excel
file will be saved into database. Else an email will go to the
configured (admin) email id with exception details
 Conclusion
Based on the configuration and given excel file, records will be saved into the database and if any exception occurs
then it will go as an email to the admin (configured email).
Thank You….
OurOfficialWebsite- www.vmokshagroup.com
FacebookPage- https://www.facebook.com/Vmokshagroup
Google+Page- https://plus.google.com/+VmokshaTechnologies
TwitterPage- https://twitter.com/InfoVmoksha
PinterestPage- https://in.pinterest.com/vmokshagroup/
LinkedInPage- https://www.linkedin.com/company/vmoksha-technologies
InstagramPage- https://www.instagram.com/vmoksha.technologies/
ContactUs -080 4137 6300
Address -2799 & 2800, Srinidhi, Sector-1, 27th Main, HSR Layout, Bengaluru, Karnataka 560102.

Weitere ähnliche Inhalte

Was ist angesagt?

Awsgsg freetier
Awsgsg freetierAwsgsg freetier
Awsgsg freetierSebin John
 
Set it and Forget it: Auto Scaling Target Tracking Policies - AWS Online Tech...
Set it and Forget it: Auto Scaling Target Tracking Policies - AWS Online Tech...Set it and Forget it: Auto Scaling Target Tracking Policies - AWS Online Tech...
Set it and Forget it: Auto Scaling Target Tracking Policies - AWS Online Tech...Amazon Web Services
 
Amazon web services
Amazon web servicesAmazon web services
Amazon web servicesSuresh Kumar
 
New email marketing features
New email marketing featuresNew email marketing features
New email marketing featuresHubShout
 
Email Delivery Support
Email Delivery SupportEmail Delivery Support
Email Delivery Supportrobbie2629
 
AWS Start-up Event Seattle 2009: AWS Overview
AWS Start-up Event Seattle 2009: AWS OverviewAWS Start-up Event Seattle 2009: AWS Overview
AWS Start-up Event Seattle 2009: AWS OverviewAmazon Web Services
 
Workshop: Deploy a Deep Learning Framework on Amazon ECS
Workshop: Deploy a Deep Learning Framework on Amazon ECSWorkshop: Deploy a Deep Learning Framework on Amazon ECS
Workshop: Deploy a Deep Learning Framework on Amazon ECSAmazon Web Services
 
Best Practices for Getting Started with AWS
Best Practices for Getting Started with AWSBest Practices for Getting Started with AWS
Best Practices for Getting Started with AWSAmazon Web Services
 
Bagels & Bytes: Data Scientist Event
Bagels & Bytes: Data Scientist EventBagels & Bytes: Data Scientist Event
Bagels & Bytes: Data Scientist EventAmazon Web Services
 
AWS Interview Questions Part - 2 | AWS Interview Questions And Answers Part -...
AWS Interview Questions Part - 2 | AWS Interview Questions And Answers Part -...AWS Interview Questions Part - 2 | AWS Interview Questions And Answers Part -...
AWS Interview Questions Part - 2 | AWS Interview Questions And Answers Part -...Simplilearn
 
Centralized IAM Governance using CloudFormation StackSets and AWS Organizatio...
Centralized IAM Governance using CloudFormation StackSets and AWS Organizatio...Centralized IAM Governance using CloudFormation StackSets and AWS Organizatio...
Centralized IAM Governance using CloudFormation StackSets and AWS Organizatio...Amazon Web Services
 
Amazon web services : Layman Introduction
Amazon web services : Layman IntroductionAmazon web services : Layman Introduction
Amazon web services : Layman IntroductionParashar Borkotoky
 
AWS Webinar - Design for Availability-13_09_10
AWS Webinar - Design for Availability-13_09_10AWS Webinar - Design for Availability-13_09_10
AWS Webinar - Design for Availability-13_09_10Amazon Web Services
 
Build Text Analytics Solutions with Amazon Comprehend & Amazon Translate: Mac...
Build Text Analytics Solutions with Amazon Comprehend & Amazon Translate: Mac...Build Text Analytics Solutions with Amazon Comprehend & Amazon Translate: Mac...
Build Text Analytics Solutions with Amazon Comprehend & Amazon Translate: Mac...Amazon Web Services
 
AWS Machine Learning Week SF: Build text analytics solutions with AWS ML Serv...
AWS Machine Learning Week SF: Build text analytics solutions with AWS ML Serv...AWS Machine Learning Week SF: Build text analytics solutions with AWS ML Serv...
AWS Machine Learning Week SF: Build text analytics solutions with AWS ML Serv...Amazon Web Services
 
Aws interview questions and answers
Aws interview questions and answersAws interview questions and answers
Aws interview questions and answerskavinilavuG
 

Was ist angesagt? (20)

Awsgsg freetier
Awsgsg freetierAwsgsg freetier
Awsgsg freetier
 
Set it and Forget it: Auto Scaling Target Tracking Policies - AWS Online Tech...
Set it and Forget it: Auto Scaling Target Tracking Policies - AWS Online Tech...Set it and Forget it: Auto Scaling Target Tracking Policies - AWS Online Tech...
Set it and Forget it: Auto Scaling Target Tracking Policies - AWS Online Tech...
 
Amazon web services
Amazon web servicesAmazon web services
Amazon web services
 
New email marketing features
New email marketing featuresNew email marketing features
New email marketing features
 
Cost Optimisation
Cost OptimisationCost Optimisation
Cost Optimisation
 
Email Delivery Support
Email Delivery SupportEmail Delivery Support
Email Delivery Support
 
AWS Start-up Event Seattle 2009: AWS Overview
AWS Start-up Event Seattle 2009: AWS OverviewAWS Start-up Event Seattle 2009: AWS Overview
AWS Start-up Event Seattle 2009: AWS Overview
 
Workshop: Deploy a Deep Learning Framework on Amazon ECS
Workshop: Deploy a Deep Learning Framework on Amazon ECSWorkshop: Deploy a Deep Learning Framework on Amazon ECS
Workshop: Deploy a Deep Learning Framework on Amazon ECS
 
Closing
Closing Closing
Closing
 
Best Practices for Getting Started with AWS
Best Practices for Getting Started with AWSBest Practices for Getting Started with AWS
Best Practices for Getting Started with AWS
 
Bagels & Bytes: Data Scientist Event
Bagels & Bytes: Data Scientist EventBagels & Bytes: Data Scientist Event
Bagels & Bytes: Data Scientist Event
 
AWS Interview Questions Part - 2 | AWS Interview Questions And Answers Part -...
AWS Interview Questions Part - 2 | AWS Interview Questions And Answers Part -...AWS Interview Questions Part - 2 | AWS Interview Questions And Answers Part -...
AWS Interview Questions Part - 2 | AWS Interview Questions And Answers Part -...
 
Centralized IAM Governance using CloudFormation StackSets and AWS Organizatio...
Centralized IAM Governance using CloudFormation StackSets and AWS Organizatio...Centralized IAM Governance using CloudFormation StackSets and AWS Organizatio...
Centralized IAM Governance using CloudFormation StackSets and AWS Organizatio...
 
Amazon web services : Layman Introduction
Amazon web services : Layman IntroductionAmazon web services : Layman Introduction
Amazon web services : Layman Introduction
 
AWS Overview
AWS Overview AWS Overview
AWS Overview
 
Email Marketing
Email MarketingEmail Marketing
Email Marketing
 
AWS Webinar - Design for Availability-13_09_10
AWS Webinar - Design for Availability-13_09_10AWS Webinar - Design for Availability-13_09_10
AWS Webinar - Design for Availability-13_09_10
 
Build Text Analytics Solutions with Amazon Comprehend & Amazon Translate: Mac...
Build Text Analytics Solutions with Amazon Comprehend & Amazon Translate: Mac...Build Text Analytics Solutions with Amazon Comprehend & Amazon Translate: Mac...
Build Text Analytics Solutions with Amazon Comprehend & Amazon Translate: Mac...
 
AWS Machine Learning Week SF: Build text analytics solutions with AWS ML Serv...
AWS Machine Learning Week SF: Build text analytics solutions with AWS ML Serv...AWS Machine Learning Week SF: Build text analytics solutions with AWS ML Serv...
AWS Machine Learning Week SF: Build text analytics solutions with AWS ML Serv...
 
Aws interview questions and answers
Aws interview questions and answersAws interview questions and answers
Aws interview questions and answers
 

Andere mochten auch

Moving to the cloud edited
Moving to the cloud   editedMoving to the cloud   edited
Moving to the cloud editedVmoksha Admin
 
angular-formly presentation
angular-formly presentationangular-formly presentation
angular-formly presentationAnnia Martinez
 
SDLC - Software Development Life Cycle
SDLC - Software Development Life CycleSDLC - Software Development Life Cycle
SDLC - Software Development Life CycleSuresh Koujalagi
 
Vmoksha Technologies competencies
Vmoksha Technologies competenciesVmoksha Technologies competencies
Vmoksha Technologies competenciesVmoksha Admin
 
Material design for android
Material design for androidMaterial design for android
Material design for androidVmoksha Admin
 
Business cards database
Business cards databaseBusiness cards database
Business cards databasePrince Patni
 
Mobility Services
Mobility Services Mobility Services
Mobility Services 201380043
 
Material Design - Høgskolen Ringerike 2017
Material Design - Høgskolen Ringerike 2017Material Design - Høgskolen Ringerike 2017
Material Design - Høgskolen Ringerike 2017Konstantin Loginov
 
SUGARCRM research by Vmoksha
SUGARCRM research by VmokshaSUGARCRM research by Vmoksha
SUGARCRM research by VmokshaSuresh Koujalagi
 
Presentation aiesec journee du volontariat
Presentation aiesec journee du volontariatPresentation aiesec journee du volontariat
Presentation aiesec journee du volontariatKarel Manuela Kouadio
 
Research on social media platform for an organisation
Research on social media platform for an organisationResearch on social media platform for an organisation
Research on social media platform for an organisationSuresh Koujalagi
 
Digital Marketing Overview
Digital Marketing OverviewDigital Marketing Overview
Digital Marketing OverviewAnton Koekemoer
 

Andere mochten auch (14)

Moving to the cloud edited
Moving to the cloud   editedMoving to the cloud   edited
Moving to the cloud edited
 
angular-formly presentation
angular-formly presentationangular-formly presentation
angular-formly presentation
 
SDLC - Software Development Life Cycle
SDLC - Software Development Life CycleSDLC - Software Development Life Cycle
SDLC - Software Development Life Cycle
 
Vmoksha Technologies competencies
Vmoksha Technologies competenciesVmoksha Technologies competencies
Vmoksha Technologies competencies
 
saurabh_ios
saurabh_iossaurabh_ios
saurabh_ios
 
Material design for android
Material design for androidMaterial design for android
Material design for android
 
Business cards database
Business cards databaseBusiness cards database
Business cards database
 
Mobility Services
Mobility Services Mobility Services
Mobility Services
 
Material Design - Høgskolen Ringerike 2017
Material Design - Høgskolen Ringerike 2017Material Design - Høgskolen Ringerike 2017
Material Design - Høgskolen Ringerike 2017
 
SUGARCRM research by Vmoksha
SUGARCRM research by VmokshaSUGARCRM research by Vmoksha
SUGARCRM research by Vmoksha
 
About vmoksha brief
About vmoksha briefAbout vmoksha brief
About vmoksha brief
 
Presentation aiesec journee du volontariat
Presentation aiesec journee du volontariatPresentation aiesec journee du volontariat
Presentation aiesec journee du volontariat
 
Research on social media platform for an organisation
Research on social media platform for an organisationResearch on social media platform for an organisation
Research on social media platform for an organisation
 
Digital Marketing Overview
Digital Marketing OverviewDigital Marketing Overview
Digital Marketing Overview
 

Ähnlich wie AWS SES

Setting up an email engine using amazon ses (vmokhsa technologies pvt. ltd.)
Setting up an email engine using amazon ses (vmokhsa technologies pvt. ltd.)Setting up an email engine using amazon ses (vmokhsa technologies pvt. ltd.)
Setting up an email engine using amazon ses (vmokhsa technologies pvt. ltd.)Vmoksha Admin
 
Deep Dive into AWS SAM: re:Invent 2018 Recap at the AWS Loft - San Francisco
Deep Dive into AWS SAM: re:Invent 2018 Recap at the AWS Loft - San FranciscoDeep Dive into AWS SAM: re:Invent 2018 Recap at the AWS Loft - San Francisco
Deep Dive into AWS SAM: re:Invent 2018 Recap at the AWS Loft - San FranciscoAmazon Web Services
 
Alex Casalboni - Configuration management and service discovery - Codemotion ...
Alex Casalboni - Configuration management and service discovery - Codemotion ...Alex Casalboni - Configuration management and service discovery - Codemotion ...
Alex Casalboni - Configuration management and service discovery - Codemotion ...Codemotion
 
Introduction to apex code
Introduction to apex codeIntroduction to apex code
Introduction to apex codeEdwinOstos
 
DevOps Fest 2019. Alex Casalboni. Configuration management and service discov...
DevOps Fest 2019. Alex Casalboni. Configuration management and service discov...DevOps Fest 2019. Alex Casalboni. Configuration management and service discov...
DevOps Fest 2019. Alex Casalboni. Configuration management and service discov...DevOps_Fest
 
JavaScript & Cloud: the AWS JS SDK and how to work with cloud resources
JavaScript & Cloud: the AWS JS SDK and how to work with cloud resourcesJavaScript & Cloud: the AWS JS SDK and how to work with cloud resources
JavaScript & Cloud: the AWS JS SDK and how to work with cloud resourcesCorley S.r.l.
 
Hyperion Essbase integration with ODI
Hyperion Essbase integration with ODIHyperion Essbase integration with ODI
Hyperion Essbase integration with ODIDharmaraj Borse
 
10 performance and scalability secrets of ASP.NET websites
10 performance and scalability secrets of ASP.NET websites10 performance and scalability secrets of ASP.NET websites
10 performance and scalability secrets of ASP.NET websitesoazabir
 
AWS Lambda and the Serverless Cloud
AWS Lambda and the Serverless CloudAWS Lambda and the Serverless Cloud
AWS Lambda and the Serverless CloudAmazon Web Services
 
RESTful API In Node Js using Express
RESTful API In Node Js using Express RESTful API In Node Js using Express
RESTful API In Node Js using Express Jeetendra singh
 
Action Mailer
Action MailerAction Mailer
Action MailerSHC
 
Create a serverless architecture for data collection with Python and AWS
Create a serverless architecture for data collection with Python and AWSCreate a serverless architecture for data collection with Python and AWS
Create a serverless architecture for data collection with Python and AWSDavid Santucci
 

Ähnlich wie AWS SES (20)

Send email
Send emailSend email
Send email
 
AWS intro
AWS introAWS intro
AWS intro
 
Setting up an email engine using amazon ses (vmokhsa technologies pvt. ltd.)
Setting up an email engine using amazon ses (vmokhsa technologies pvt. ltd.)Setting up an email engine using amazon ses (vmokhsa technologies pvt. ltd.)
Setting up an email engine using amazon ses (vmokhsa technologies pvt. ltd.)
 
Deep Dive into AWS SAM: re:Invent 2018 Recap at the AWS Loft - San Francisco
Deep Dive into AWS SAM: re:Invent 2018 Recap at the AWS Loft - San FranciscoDeep Dive into AWS SAM: re:Invent 2018 Recap at the AWS Loft - San Francisco
Deep Dive into AWS SAM: re:Invent 2018 Recap at the AWS Loft - San Francisco
 
Deep Dive into AWS SAM
Deep Dive into AWS SAMDeep Dive into AWS SAM
Deep Dive into AWS SAM
 
Alex Casalboni - Configuration management and service discovery - Codemotion ...
Alex Casalboni - Configuration management and service discovery - Codemotion ...Alex Casalboni - Configuration management and service discovery - Codemotion ...
Alex Casalboni - Configuration management and service discovery - Codemotion ...
 
Aws setup
Aws setupAws setup
Aws setup
 
Introduction to apex code
Introduction to apex codeIntroduction to apex code
Introduction to apex code
 
10863-2016
10863-201610863-2016
10863-2016
 
DevOps Fest 2019. Alex Casalboni. Configuration management and service discov...
DevOps Fest 2019. Alex Casalboni. Configuration management and service discov...DevOps Fest 2019. Alex Casalboni. Configuration management and service discov...
DevOps Fest 2019. Alex Casalboni. Configuration management and service discov...
 
AWS Serverless Workshop
AWS Serverless WorkshopAWS Serverless Workshop
AWS Serverless Workshop
 
JavaScript & Cloud: the AWS JS SDK and how to work with cloud resources
JavaScript & Cloud: the AWS JS SDK and how to work with cloud resourcesJavaScript & Cloud: the AWS JS SDK and how to work with cloud resources
JavaScript & Cloud: the AWS JS SDK and how to work with cloud resources
 
More Asp
More AspMore Asp
More Asp
 
Hyperion Essbase integration with ODI
Hyperion Essbase integration with ODIHyperion Essbase integration with ODI
Hyperion Essbase integration with ODI
 
10 performance and scalability secrets of ASP.NET websites
10 performance and scalability secrets of ASP.NET websites10 performance and scalability secrets of ASP.NET websites
10 performance and scalability secrets of ASP.NET websites
 
AWS Lambda and the Serverless Cloud
AWS Lambda and the Serverless CloudAWS Lambda and the Serverless Cloud
AWS Lambda and the Serverless Cloud
 
RESTful API In Node Js using Express
RESTful API In Node Js using Express RESTful API In Node Js using Express
RESTful API In Node Js using Express
 
Action Mailer
Action MailerAction Mailer
Action Mailer
 
Create a serverless architecture for data collection with Python and AWS
Create a serverless architecture for data collection with Python and AWSCreate a serverless architecture for data collection with Python and AWS
Create a serverless architecture for data collection with Python and AWS
 
Xml writers
Xml writersXml writers
Xml writers
 

Mehr von Vmoksha Admin

Microsoft azure edited
Microsoft azure   editedMicrosoft azure   edited
Microsoft azure editedVmoksha Admin
 
6 mobile app trends that are expected to rule in 2016 (vmoksha technologies p...
6 mobile app trends that are expected to rule in 2016 (vmoksha technologies p...6 mobile app trends that are expected to rule in 2016 (vmoksha technologies p...
6 mobile app trends that are expected to rule in 2016 (vmoksha technologies p...Vmoksha Admin
 
Virtual hosting using nginx
Virtual hosting using nginxVirtual hosting using nginx
Virtual hosting using nginxVmoksha Admin
 

Mehr von Vmoksha Admin (6)

Saa s edited
Saa s   editedSaa s   edited
Saa s edited
 
Microsoft azure edited
Microsoft azure   editedMicrosoft azure   edited
Microsoft azure edited
 
6 mobile app trends that are expected to rule in 2016 (vmoksha technologies p...
6 mobile app trends that are expected to rule in 2016 (vmoksha technologies p...6 mobile app trends that are expected to rule in 2016 (vmoksha technologies p...
6 mobile app trends that are expected to rule in 2016 (vmoksha technologies p...
 
Virtual hosting using nginx
Virtual hosting using nginxVirtual hosting using nginx
Virtual hosting using nginx
 
Mobility
MobilityMobility
Mobility
 
Mobility
MobilityMobility
Mobility
 

Kürzlich hochgeladen

DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 

Kürzlich hochgeladen (20)

DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 

AWS SES

  • 3.  INTRODUCTION Amazon Simple Email Service (Amazon SES) is a highly scalable and cost-effective email service for developers and businesses. Amazon SES eliminates the complexity and expenditure of building an in-house email solution or licensing, installing, and operating a third-party email service for this type of email communication. In addition, the service integrates with other AWS services, making it easy to send emails from applications being hosted on AWS.  PREREQUISITES • AWS SES • AWS SNS • AWS S3 • AWS Lambda  REQUIREMENTS When a user uploads an excel file to web console, each row data from the excel file should save into the database. If this process got failed due to some exception, the exception error message must go to the configured email Id’s.
  • 4.  WORKFLOW We are using two lambda functions. One is used for uploading excel sheet to s3 bucket and another for sending exceptional email to administrator. When we are uploading excel sheet to s3 bucket, if any failure or exception occurs in that time, Excel upload lambda function will send the error result to SNS (Simple Notification Service) and Exception email lambda function will trigger the SNS and send an exceptional email to the administrator by using SES.
  • 5.  Solution Setting up Prerequisites 1) AWS SNS Create a SNS Topic by following below steps, Open AWS account à choose services as SNS Click on Create Topic à give the Topic name and Display Name Click on Create topic 2) AWS S3 Bucket Create an AWS S3 Bucket with add permission and enable CORS configuration. 3) AWS Lambda Two Lambda functions are required: i) For reading excel file and saving each row data into concerned database a) Create the lambda function using below code:
  • 6. var s3file = s3.getObject(params,function (err,data){ if(err){ result.message = 'error while getting ' + key + 'from' + bucketName +' bucket name'; result.describtion = err; context.fail(result); }else{ var wstream = fs.createWriteStream('/tmp/user.xlsx'); wstream.write(data.Body , function(err){ if(err) { console.log(err); } else{ exceltojson({ input: '/tmp/user.xlsx', output: null, },function(err, rest) { if(err) { result.message = 'error while reading the'+key+ ' file from '+bucketName; } else{
  • 7. maxCount = rest.length; console.log('max count f rows in excel/cvs file = ' + maxCount); ExcelData = rest; } } } b) Upload the Zip file containing NodeJS Code, which holds logic for reading the excel file and pushing each row data into the concerned database by calling custom API. c) Map AWS Lambda Trigger to AWS S3 when putObject() method invoked inside AWS S3.
  • 8. ii) To send the exception email a) Create lambda function using below code: var ses = new aws.SES({ apiVersion: '2010-12-01' }); // Generating params to send Email var params = { Destination: {}, Message: { Subject: { Data:Subject, Charset: 'UTF-8' }, Body: { Html: {
  • 9. Data: message, Charset: 'UTF-8' } } } }; params.Destination.ToAddresses = [emailTOAddress]; params.Source = FromAddress; // calling send email function ses.sendEmail(params, function (err, data) { if (err) {//failure message result.message = err, err.stack; console.log(result); context.fail(result); } else {//Sucess result.message = 'Email send successfully'; result.data = data; console.log(result); context.succeed(result); } });
  • 10. b) Map AWS Lambda Trigger to AWS SNS topic when any exception occurs in the first lambda function i.e. while saving each row of excel file into the database.  Implementation Step 1: Upload the excel file directly into AWS S3 bucket manually or through AWS SDK Step 2: If everything goes well, all the records from excel file will be saved into database. Else an email will go to the configured (admin) email id with exception details  Conclusion Based on the configuration and given excel file, records will be saved into the database and if any exception occurs then it will go as an email to the admin (configured email).
  • 11. Thank You…. OurOfficialWebsite- www.vmokshagroup.com FacebookPage- https://www.facebook.com/Vmokshagroup Google+Page- https://plus.google.com/+VmokshaTechnologies TwitterPage- https://twitter.com/InfoVmoksha PinterestPage- https://in.pinterest.com/vmokshagroup/ LinkedInPage- https://www.linkedin.com/company/vmoksha-technologies InstagramPage- https://www.instagram.com/vmoksha.technologies/ ContactUs -080 4137 6300 Address -2799 & 2800, Srinidhi, Sector-1, 27th Main, HSR Layout, Bengaluru, Karnataka 560102.