amazon-sns

Subscribe an Amazon SNS topic using AWS Lambda function?

十年热恋 提交于 2020-01-24 15:13:16
问题 Can we subscribe an Amazon SNS topic using an AWS Lambda function? 回答1: Yes. With help of sns.subscribe() Please keep in mind: dont forget to confirm it sns.confirmSubscription() 回答2: If you mean can you use a message from a SNS topic as the trigger for a lambda function, then the answer is yes. If you mean can you write a lambda function that adds a subscription to an SNS topic then the answer is yes. Towards the bottom are links for the language-specific AWS SDKs. Your Lambda function would

AWS Lambda not invoked when subscribed SNS message is large

元气小坏坏 提交于 2020-01-24 07:40:16
问题 I've got a AWS lambda function that takes a large array of email addresses and submits them to SES for sending. The function is invoked via a SNS subscription. It works nicely when the message's email array size is small, however when the message's email array size is large the lambda function is NOT invoked. No logging occurs.... I've confirmed that the payload is below the SNS message size required, and I've subscribed to the SNS topic via my email...this works. I get emailed the expected

Amazon SNS - Sending SMS, delivery status

*爱你&永不变心* 提交于 2020-01-24 03:47:29
问题 I am trying to send messages using Amazon SNS but it's showing atypical behavior. It sends messages to some of the numbers while may or may not to others. import boto3 client = boto3.client('sns', .....) client.publish(PhoneNumber, Message) I am using the publish API to directly send SMS for OTPs without using Topics. Is there a way I can get the delivery status for them? Would region/DND affect the delivery. This is for Indian numbers. I am using Transactional messages for the same. 回答1: On

Customize alarm message from AWS Cloudwatch

♀尐吖头ヾ 提交于 2020-01-23 02:36:47
问题 I got some alarm notifications from AWS Cloudwatch to my email but they are usually sent in a JSON format and the problem is that some of those emails are getting received by non-technical people in my company. I was wondering if that is possible to customize the emails sent by AWS SNS because I don't see any option in how to customize it. 回答1: If you are using Cloudwatch/Event/Rules then you can use "Input transfomer" to customize the contents of the email and then SNS will send that instead

Getting “EndpointDisabled” from Amazon SNS

左心房为你撑大大i 提交于 2020-01-20 12:55:01
问题 I'm using Amazon SNS. Notifications work well, but sometimes I get this error: { "message": "Endpoint is disabled", "code": "EndpointDisabled", "name": "EndpointDisabled", "statusCode": 400, "retryable": false } Maybe you know why. 回答1: You can create a new SNS topic such as push-notification-failures and then associate your APNS/APNS_SANDBOX applications' "Delivery Failures" event to it. Subscribe to the event via email (and confirm) and you'll get useful debugging information about failures

Getting “EndpointDisabled” from Amazon SNS

旧街凉风 提交于 2020-01-20 12:54:48
问题 I'm using Amazon SNS. Notifications work well, but sometimes I get this error: { "message": "Endpoint is disabled", "code": "EndpointDisabled", "name": "EndpointDisabled", "statusCode": 400, "retryable": false } Maybe you know why. 回答1: You can create a new SNS topic such as push-notification-failures and then associate your APNS/APNS_SANDBOX applications' "Delivery Failures" event to it. Subscribe to the event via email (and confirm) and you'll get useful debugging information about failures

Getting “EndpointDisabled” from Amazon SNS

断了今生、忘了曾经 提交于 2020-01-20 12:54:41
问题 I'm using Amazon SNS. Notifications work well, but sometimes I get this error: { "message": "Endpoint is disabled", "code": "EndpointDisabled", "name": "EndpointDisabled", "statusCode": 400, "retryable": false } Maybe you know why. 回答1: You can create a new SNS topic such as push-notification-failures and then associate your APNS/APNS_SANDBOX applications' "Delivery Failures" event to it. Subscribe to the event via email (and confirm) and you'll get useful debugging information about failures

AWS Lambda for transformation of messages

感情迁移 提交于 2020-01-17 07:06:53
问题 My architecture is something like as: SNS -> AWS Lambda -> Dynamo Db SNS is publishing messages to which AWS Lambda function is the subscriber and then AWS Lambda pushes the data into Dynamo Db. Is AWS Lambda good for doing transformations? Eg. I wanted to transform the message received by AWS Lambda to some other form and then pass it to downstream systems. By 'good', I mean is it normally done in AWS Lambda or for transformation, or I should use SQS Consumer probably for that? 来源: https:/

AWS Lambda calling SNS

南楼画角 提交于 2020-01-16 20:01:53
问题 I'm playing with my Amazon Echo and wrote a little function which I hope would text me after a response from my daughter. The code executes fine - but the sns.publish never happens. It fails silently - I can't raise an error. I believe I have the proper IAM permissions and Topic subscriptions. Can someone help? function textMom(kindOfDay){ var message = "Test"; var sns = new AWS.SNS(); console.log("textMethod") sns.publish({ TopicArn: "arn:aws:sns:us-east-1:", Message: message }, function(err

AWS Lambda calling SNS

最后都变了- 提交于 2020-01-16 20:00:31
问题 I'm playing with my Amazon Echo and wrote a little function which I hope would text me after a response from my daughter. The code executes fine - but the sns.publish never happens. It fails silently - I can't raise an error. I believe I have the proper IAM permissions and Topic subscriptions. Can someone help? function textMom(kindOfDay){ var message = "Test"; var sns = new AWS.SNS(); console.log("textMethod") sns.publish({ TopicArn: "arn:aws:sns:us-east-1:", Message: message }, function(err