Use the AWS CLI to send an SMS

Published: Wednesday, Feb 10, 2021 Last modified: Wednesday, Feb 24, 2021

Use the Amazon Simple Notification Service:

message=${1-"@web-otp.glitch.me #12345"}
aws sns publish --phone-number +658XXXXXXX --message "$message"
echo sent $message