This project uses powerful AWS services to build a fully automated system for sending SMS notifications.
In this documentation, we will go over the steps of this project - the idea is that we use an S3 bucket as a source to be able to upload files, which will then trigger the AWS Lambda which will execute the sendSNS() and publish a notification to an AWS SNS topic where we have configured a phone number to recieve a message whenever a subscription is published to the SNS.
- AWS S3 - First, I had to create an S3 bucket, this is where all objects in S3 are stored and where I can upload files and folders to trigger the Lambda.
- AWS Lambda - Secondly, I had to create my Lambda function. This is where the processing of the event occurs, it is framing and tuning that specific SMS message that will be sent to the configured phone numbers that we have setup in our SNS. This Lambda function has a trigger set up to invoke the given JavaScript code (can also be found in this repo).
- AWS SNS - Most importantly, I had to create an SNS topic which is a logical access point that acts as a communication channel. Then to receive messages published to a topic, I had to create a subscription to an endpoint to the topic. When you subscribe an endpoint to a topic, the endpoint begins to receive messages published to the associated topic.
- Lastly, to test our service, we go back to our trigger point (the S3 bucket we created) and from here, I uploaded a dummy json file to trigger our messaging service.
- As you can see here, as soon as that file was uploaded - I received an SMS message discussing the content of the file and a link to the uploaded file itself.





