SlideShare a Scribd company logo
1 of 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.

More Related Content

What's hot

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
 

What's hot (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
 

Viewers also liked

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
 

Viewers also liked (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
 

Similar to 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
 

Similar to 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
 

More from 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
 

More from 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
 

Recently uploaded

Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsAndrey Dotsenko
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsPrecisely
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 

Recently uploaded (20)

Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power Systems
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 

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.