Use the AWS CLI to send an SMS

Send an SMS with an Amazon Web Services account

Published: Wednesday, Feb 10, 2021 Last modified: Thursday, Nov 14, 2024

Use the Amazon Simple Notification Service:

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