Member-only story
An SMS API in 5 minutes! Yep, with AWS SNS and NodeJS
This is a quick tutorial showing you how to send an SMS with AWS SNS and NodeJS
1st, clone the repository at https://github.com/Sean-Bradley/AWS-SNS-SMS-with-NodeJS.git
$ git clone https://github.com/Sean-Bradley/AWS-SNS-SMS-with-NodeJS.git
Then cd into the new folder
$ cd AWS-SNS-SMS-with-NodeJS
Open the project in your favourite editor. I use VSCode.
Then rename the file called .env.example
to .env
Now to get the
- AWS_ACCESS_KEY_ID,
- AWS_SECRET_ACCESS_KEY
- AWS_REGION
Log into your AWS console and go to your IAM settings, and create a new user.
Create a new user called SMSSender
and check Programmatic access
and then press the Next
button.
Then create a group and name it SMSSenders
and assign it the AmazonSNSFullAccess
policy