Questions tagged with Amazon Simple Notification Service (SNS)
Content language: English
Sort by most recent
hi team,
Is there any way to send email notification for all iam users activity in aws ? Please share suggestions
Hi everyone!
We have a AWS Managed Grafana alert connected to AWS Timestream:


The alert fires a SNS notification (which is processed by a lambda function) and an email. The problem is, we keep receiving always 3 notifications, with the same valueString. For example, here are 3 valuesStrings which came in 3 different notifications:
[ metric='_col1' labels={serial_device=158857075025556} value=-17.558333333333334 ],
[ metric='_col1' labels={serial_device=132400469686384} value=-16.96666666666667 ],
[ metric='_col1' labels={serial_device=246326151756948} value=-19.638461538461538 ],
[ metric='_col1' labels={serial_device=27418224420500} value=-15.080000000000005 ]
[ metric='_col1' labels={serial_device=27418224420500} value=-15.080000000000005 ],
[ metric='_col1' labels={serial_device=132400469686384} value=-16.96666666666667 ],
[ metric='_col1' labels={serial_device=246326151756948} value=-19.638461538461538 ],
[ metric='_col1' labels={serial_device=158857075025556} value=-17.558333333333334 ]
[ metric='_col1' labels={serial_device=158857075025556} value=-17.558333333333334 ],
[ metric='_col1' labels={serial_device=246326151756948} value=-19.638461538461538 ],
[ metric='_col1' labels={serial_device=132400469686384} value=-16.96666666666667 ],
[ metric='_col1' labels={serial_device=27418224420500} value=-15.080000000000005 ]
We also tested Reduce followed by Math expressions, instead of Classic Condition, but the problem remains.
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?
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?
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,
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?
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
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!
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
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ç
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
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.