SMS from amazon service to user's mobile number - amazon-web-services

Can we send a SMS to a mobile number through amazon service? I need to send a plain message and not notifications.

No.
Amazon Simple Notification Service (SNS) can't send SMS messages to recipients who have not opted-in to receive topic notifications.
The SMS capability in SNS is limited to users who respond affirmatively to the initial message requesting that they confirm their subscription to a topic -- for notifications.

Related

AWS SNS SMS log status SUCCCESS but not delivered to end user

I am sending SMS to Indian mobile numbers using SNS production account(not configured SenderId) in ap-south-1 region with boto3 api using below code
sns = boto3.client('sns',region_name='us-east-1')
number = "+91"+user_mobile_number
content = sns.publish(PhoneNumber=number, Message="Dear Customer, Use this to verify your mobile:"+verification_code+"")
SMS logs shows success status for all but only first SMS is delivered correctly and all other SMS are not delivered.
SMS delivered correctly at random times.
As per aws documentation, to send SMS to India using AWS SNS suggests to register with TRAI,
Trying to debug but cannot find why the SMS are not delivered, is there any restrictions in sending SMS to indian numbers ?
Is it mandatory to register TRAI to send SMS to Indian number?

For Amazon SES: Using an API to receive the list of bounced emails?

Hello is there an Amazon SES API (or some kind of webhook) which allows us to see the list of bounced emails?
I know SNS exists but that costs extra.
From Amazon SES notifications sent by email - Amazon Simple Email Service:
Amazon SES can send you email when you receive bounces and complaints by using a process called email feedback forwarding.
In order to send email using Amazon SES, you must configure it to send bounce and complaint notifications by using one of the following methods:
By enabling email feedback forwarding
By sending notifications to an Amazon SNS topic
By publishing event notifications
So, if you don't want to use an Amazon SNS topic (which is very low cost!), you could have them sent via email.

How to respond to SMS from AWS SNS

When I receive an SMS from a friend's mobile phone, I can respond to it (as you would expect). When I receive an SMS from my application, via AWS SNS, I can not respond. Why is that? And can I configure a response phone number?
There is no in-bound SMS capability with Amazon Simple Notification Service. It is only for outbound messaging.
However, Amazon Pinpoint can respond to SMS messages, typically as part of a marketing campaign.
See: Amazon Pinpoint Launches Two-Way Text Messaging | AWS News Blog

Amazon-SNS. Limit delivery to SMS protocol while publishing

We are using Amazon SNS to sent SMS to customers through API(PHP). The topic may have email subscriptions as well as SMS subscriptions. I.e While creating a subscription,protocol may be email/sms. But we want to sent only SMS while publishing the messages. Email subscriptions should not receive any message. How to archive this?
This is not possible. All subscribers to the topic will be sent the message.
You can provide different versions of messages for different types of subscriptions (eg SMS vs email), but you cannot control which type of subscriber receives a message.
Some alternatives:
Maintain separate topics for situations where you wish to send a notification only to a subset of subscribers
Use Amazon Pinpoint to specifically target mobile users with notification campaigns

Amazon SNS topic subscription confirmation for mobile apps

I'd like to understand how amazon SNS confirms endpoint subscription in case of mobile apps.
For SMS, HTTP or email enpoints, we can assume a confirmation SMS, call and email is sent.
But for apps, SNS seems to be managing all notifications through third party services like GCM, APNS etc.
Say I have a GCM client and server ready.
My client wants to subscribe to a topic. How is the confirmation message sent to the device?
Amazon SNS auto-confirms mobile endpoints like GCM, APNs etc. From the Amazon SNS FAQ,
Q: Does enabling push notifications require any special confirmations
with SNS Mobile Push?
No, they do not. End-users opt-in to receive push notifications when
they first run an app, whether or not SNS delivers the push
notifications.