amazon-sns

Email notification through SNS and Lambda

感情迁移 提交于 2019-12-01 13:27:58
问题 I am facing an issue. My main motive is to send an email whenever there is state change happened to ec2 instances. I tried cloud watch events directly with SNS and its work also but the email template which I am receiving is not having the proper information to understood. I was expecting Server name and its IP in the email template which SNS does not give me the option to modify it. So What I am thinking is to involve lambda so that cloudwatch events to monitor EC2 instances state change and

How to confirm delivery status when using amazonSNS mobile push?

浪子不回头ぞ 提交于 2019-12-01 06:37:52
I'm using AmazonSNS to send push messages to IOS device. I have got the publishResult with a messageID. Is there any way I can use this messageID to check the delivery status ? Looks like Amazon just added support for message delivery status: Application Attributes for Message Delivery Status . It works in conjunction with Cloudwatch Logs . There is no way to confirm that a message has been delivered. However, it looks like there is a way to receive an event when a message fails to be delivered. Check out the EventDeliveryFailure here: http://docs.aws.amazon.com/sns/latest/api/API

How to confirm delivery status when using amazonSNS mobile push?

≯℡__Kan透↙ 提交于 2019-12-01 04:11:17
问题 I'm using AmazonSNS to send push messages to IOS device. I have got the publishResult with a messageID. Is there any way I can use this messageID to check the delivery status ? 回答1: Looks like Amazon just added support for message delivery status: Application Attributes for Message Delivery Status. It works in conjunction with Cloudwatch Logs. 回答2: There is no way to confirm that a message has been delivered. However, it looks like there is a way to receive an event when a message fails to be

Amazon SNS SDK Invalid Parameter exception on subscription confirmation

吃可爱长大的小学妹 提交于 2019-11-30 20:27:57
问题 I'm trying to subscribe an Android user to receive push notifications using this code: public static void subscribeToTopic(final String topicArn, String EndpointArn) { SubscribeRequest request = new SubscribeRequest(topicArn, "application" , EndpointArn); SubscribeResult response = getInstance().subscribe(request); ConfirmSubscriptionRequest confirmation = new ConfirmSubscriptionRequest(topicArn, response.getSubscriptionArn()); try { getInstance().confirmSubscription(confirmation); } catch

What is advantage and disadvantage of using pubnub over Amazon Simple Notification Service (sns)?

*爱你&永不变心* 提交于 2019-11-30 18:42:34
For my team project, I need to propose which one should we use PubNub or Amazon Simple Notification Service (SNS). I find PubNub very simple to implement and use but I could not find any thing concrete in Internet which says about there advantages and disadvantages over Amazon SNS. PubNub Real-Time Network and Amazon SNS Original Answer Sourced from Quora: What are the advantages and disadvantages of using PubNub over Amazon SNS? Both PubNub Real-Time Network and Amazon SNS use a Publish/Subscribe metaphor for sending and routing data. However, this is where the comparison ends. These two

How to let AWS lambda in a VPC to publish SNS notification?

大兔子大兔子 提交于 2019-11-30 17:34:29
I have a lambda function that accesses my Postgres db in RDS via VPC. After it queries the db, I want to post a notification to SNS. Because my lambda function exists in my VPC, it cannot access SNS. I have an internet gateway on my VPC. I read through the VPC endpoint documentation and currently only s3 is supported. Is there anyway to publish to SNS in a lambda function in a VPC? You will need a NAT server running in your VPC to route traffic outside of the VPC. AWS now offers a managed NAT service that makes this easier. UPDATE As of April 2018, SNS supports VPC Endpoints via AWS

AWS SES S3 process inbound email

北城余情 提交于 2019-11-30 14:05:39
I'm working on a publish by email system based on AWS SES. For all incoming emails I've set routing to save messages in an S3 bucket so I can asynchronously process them. The problem I have is that the messages are saved in the S3 bucket in a raw format: headers, email body, etc + the encrypted attachment (a huge string) - all in a single file. Is there a way to break the email message apart form the attachment and save both in separate files at AWS SES level? I'm trying to get the data in the format I need straight from AWS and avoid adding another processing step to the process. If AWS SES

AWS SNS workaround for 100,000 topics limit

泪湿孤枕 提交于 2019-11-30 12:33:34
I am developing an architecture for push notifications using AWS SNS with APNS and GCM. The model that I am following is Each user (not device) will have an SNS topic corresponding to it Each user can have multiple devices Create an platform application endpoint for each device Subscribe the platform application endpoint to the topic belonging to the device's user This way, when we have to send a notification to all the devices of a user, we need to call the publish method using the user's topicArn and all its devices should get the message. However, by default AWS has a limit of 100,000

Is it possible to receive an Amazon SNS message on a JS script?

大兔子大兔子 提交于 2019-11-30 11:02:56
I know some options using ruby on rails and/or node.js and PubNuB, a service that has many APIs so you can send/receive notifications between (almost) any platform. I now how to send messages from PHP and how to receive them there using Amazon SNS, but how can I receive a push notification (a SNS message) on a JS/jQuery script? Thanks. Steve Campbell Yes, but not directly and you'll have to poll for messages on a timer... In the Product Details page under the heading "Flexible", you'll see that none of the currently supported formats/transports can be hosted in the browser. However... Amazon

Push notifications in PHP using Amazon SNS/SQS?

走远了吗. 提交于 2019-11-30 06:58:36
On my site I'd like to do push notifications of comments like Stackoverflow does. Amazon SNS/SQS seems to provide a framework to do this but I'm having difficulty finding any code/explanation on the web for anything beyond a "hello world" equivalent. From reading the AWS SNS/SQS documentation it looks like I need the following: logic: post comment/answer to a new question create topic (for first comment/answer only) publish message subscribe to topic PHP on the page where comments are posted (http://mysite.com/postCommentOrAnswer.php): $comment=$_POST['comment']; //posted comment require_once