Skip to content

sirshikher/AWS--SNS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS-SNS-SMS with NodeJS

A quick example of sending an SMS with AWS SNS and NodeJS

Download this repository

git clone https://github.com/sirshikher/AWS--SNS.git

$ npm install

Create a specific AWS IAM user and add to group 'AmazonSNSFullAccess'

Rename the .env.example file to .env and enter your correct AWS access key, secret and region.

$ npm start

Open browser and visit something like,

http://localhost:3000/?message=[The Message]&number=[The Number]&subject=[The Subject]

The mobile number should be E.164 format but without the + character.

eg,

You want to send a message to a number,

The country code is 44

The mobile number is (0)7700 900123

The E.164 format would be +447700900123

Remove the + character

Then Visit

http://localhost:3000/?message=my message&number=447700900123&subject=My Subject

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published