Questions tagged with Amazon Simple Notification Service (SNS)

Content language: English

Sort by most recent

Browse through the questions and answers listed below or filter and sort to narrow down your results.

Getting the captioned error message onTap signUpButton() within AuthenticatorForm(). Seems like a very straightforward error message, but can't seem to identify what's wrong. Here is my createAuthChallenge.js ``` const digitGenerator = require('crypto-secure-random-digit'); function sendSMS(phone, code) { const params = { Message: code, PhoneNumber: phone, }; return new AWS.SNS({apiVersion: '2010-03-31'}).publish(params).promise(); } async function createAuthChallenge(event) { if (event.request.challengeName === 'CUSTOM_CHALLENGE') { const randomDigits = digitGenerator.randomDigits(6).join(''); const challengeCode = String(randomDigits).join(''); await sendSMS(event.request.userAttributes.phone_number, challengeCode); event.response.privateChallengeParameters = {}; event.response.privateChallengeParameters.answer = challengeCode; } } exports.handler = async (event) => { createAuthChallenge(event); }; ``` And my package.json for the same ``` { "name": "XYZ", "version": "2.0.0", "description": "Lambda function generated by Amplify", "main": "index.js", "license": "Apache-2.0", "devDependencies": { "@types/aws-lambda": "^8.10.92" }, "dependencies": { "crypto-secure-random-digit": "^1.0.9" } } ``` I can't seem to find the right solution for this, can anyone help please?
1
answers
0
votes
11
views
asked 3 days ago
I use SES to send emails via Mautic to a variety of recipients. This also works without any problems. The bounce management also works. My problem is that I don't get any out of office notifications. When I try it with the test address ooto@simulator.amazonses.com it works. I get the out of office note delivered to the sender address. But when I test it with other email addresses that have an out of office notification set up, I don't get the out of office notification. But why? Does anyone have any idea what this could be?
2
answers
0
votes
19
views
asked 4 days ago
Hello AWS Support Team, We have recently noted down the sudden spike in our outgoing email traffic today. We have enabled the logging on our AWS SES using the SNS but surprisingly, we are not be able to received any events on the same. We are able to receive the emais for all other standard email operations on configured email address. We would like to know the reason behind the same. Also, can you please let me know, from which particular IP this event is happening and can you please share your suggestions about blocking those ip permanentntly for the SES communication channel. We are not getting logs when mass mailing happens in our account. Thank you,
1
answers
0
votes
4
views
asked 4 days ago
Been following up on the following post. https://aws.amazon.com/blogs/mobile/how-to-create-a-one-time-password-authentication-flow-using-amplify-flutter/ What I am trying to achieve is auth using just the phone number, no password or email. Article points me in the right direction, but wanted to know if there was already another resource for phone number & SMS otp? If not, two more questions please; 1. I'm assuming what I need to look at is replacing SES with SNS, is that correct? 2. Is there a reason, maybe security related, that email otp is supported, while phone number is not?
1
answers
0
votes
6
views
asked 4 days ago
Hello AWS Support Team, We have recently noted down the sudden spike in our outgoing email traffic today. We have enabled the logging on our AWS SES using the SNS but surprisingly, we are not be able to received any events on the same. We are able to receive the emais for all other standard email operations on configured email address. We would like to know the reason behind the same. Also, can you please let me know, from which particular IP this event is happening and can you please share your suggestions about blocking those ip permanentntly for the SES communication channel. We have already configured the SES notification using SNS event generation but the actual issue is , we are not getting any email notification when the mass mailing happens in our account although if the standard email sending is happening , we are getting notification emails. Can you please help in this case. Thank you
2
answers
0
votes
8
views
aws-ses
asked 5 days ago
Hi, I was using SNS to send transactional SMS. When ever the message contains a URL, I get error message that the "Phone carrier has blocked this message" from the Delivery status logs. The carrier is T-Mobile. The message is: "Thanks for attending our GW004 event at GW004! see for dets- aws3.link/nkhNzy". It gets delivered if I remove the link from message body. `@message {"notification":{"messageId":"91a4663a-61bb-575a-9f06-3a79c825faed","timestamp":"2023-01-19 20:26:06.957"},"delivery":{"phoneCarrier":"T-mobile USA Inc.","mnc":800,"numberOfMessageParts":1,"destination":"+12244328742","priceInUSD":0.00831,"smsType":"Transactional","mcc":310,"providerResponse":"Phone carrier has blocked this message","dwellTimeMs":22,"dwellTimeMsUntilDeviceAck":1160},"status":"FAILURE"} @timestamp 1674159970707 delivery.phoneCarrier T-mobile USA Inc. delivery.priceInUSD 0.00831 delivery.providerResponse Phone carrier has blocked this message delivery.smsType Transactional ` Could you please let me know what I could do? Thanks!
0
answers
0
votes
7
views
asked 9 days ago
I have come across an issue which is likely to be a configuration problem at my end. In December I set up a lambda function with a site scraper, it pulls a specific piece of information from the site. I then created a schedule through eventbridge to do this every 10 minutes. (It will eventually happen once a week but for this I used 10mins because I wanted to test it). I also created a topic in SNS with a text message being the way I would get the information. To summarise, I have an eventbridge schedule, that triggers a lambda function which then triggers an SNS topic to send me a text message. Pretty simple and it worked. Fast forward to now and it no longer works. I changed a bit of the lambda function code to have a cleaner output when it came to receiving text messages. I have gone back to the start with it and deleted all triggers. I have set up new schedules and even new rules, created new topics but I no longer get any text messages. I'm in the UK but have deployed in us-east-1. I'm at a loss at the moment to what the problem may be. I have noticed when I try to create a new rule based on a schedule it takes me to the new eventbridge scheduler page. I have done that still wont work. I also tried with setting up a rule and have it set to 1 minute just to test but still nothing. I have the SNS topic on asyncronous and on success of the trigger rather than failure. Like I said it worked previously right up until yesterday. I reverted back to the old code and its still no longer working. I have checked the logs and it seems the scheduler is triggering the lambda but nothing from the amazon sns side. **EDIT** - I had a look on Amazon SNS I have a delivery rate of 0.51%, almost 900 have failed at the time of writing this. **EDIT** - Edit 2, I think the problem may be my SMS quota has been reached. I have another question though. Would I be better setting this up in the UK, would it reduce costs? Thanks
1
answers
0
votes
32
views
asked 10 days ago
I'm trying to configure the SNS service under my account to test sending SMS from Spain region. When I'm on the spain region I don't see the option to configure text messages, but if change to Frankfurt for example, then I see the options on the console menu. What do I need to do to enable SMS for the spain region under my account? Thanks Vicenç
1
answers
0
votes
10
views
asked 10 days ago
Hi Team, Is it possible to send messages from SQS to SES, is there any configurations in the console. Currently I am working in the ireland region, and have created a topic, while subscribing the only option i have found is Amazon SQS, but I want to send an email. So please help me if there is a way to send messages from SQS to SES in console
1
answers
0
votes
31
views
asked 13 days ago
Hi, I need to figure out which email addresses could not be delivered by AWS SES (for example, those email do not exist). How do I get that? Thanks.
1
answers
0
votes
18
views
asked 15 days ago
Hi all, In our application, we send reminder emails to our customers one day before their reservation at exactly 1AM. This means, that we may need to send a 100 or even more emails at once, to different email addresses. We have a scheduled Node JS function, which uses the AWS SDK in our backend to do this. Currently, my maximum send rate is 14 emails per second. So my question is how do I go about preventing to exceed the maximum sending rate per second?
1
answers
0
votes
22
views
asked 16 days ago
We have an HTTPS endpoint configured as a subscriber. We configured delivery logs to cloud watch. In the cloud watch logs i am seeing the following error message. ![Enter image description here](/media/postImages/original/IM8z63tyRfRdW4LLrudpOfnA) Our HTTPS API is working fine but the error message says **IO Exception in HttpClient ** . Is this problem in sns end or on My Server side?
0
answers
1
votes
32
views
asked 17 days ago