amazon-sns

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

爱⌒轻易说出口 提交于 2019-12-18 14:17:37
问题 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. 回答1: 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

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

空扰寡人 提交于 2019-12-18 14:17:06
问题 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. 回答1: 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

AWS SNS delivery status

偶尔善良 提交于 2019-12-17 21:17:10
问题 I am new in Aws, I am using Aws SNS to send notification, i am sending notifications to different topic not to endpoint. This is working perfectly. When i publish notification, i got array like object(Aws\Result)#84 (1) { ["data":"Aws\Result":private]=> array(2) { ["MessageId"]=> string(36) "************-7a29-591f-8765-************" ["@metadata"]=> array(4) { ["statusCode"]=> int(200) ["effectiveUri"]=> string(40) "https://sns.ap-southeast-1.amazonaws.com" ["headers"]=> array(4) { ["x-amzn

AWS SDK for PHP: Error retrieving credentials from the instance profile metadata server

◇◆丶佛笑我妖孽 提交于 2019-12-17 15:33:03
问题 I am trying to send SNS messeges to android through web api. Downloaded and installed the SDK from http://aws.amazon.com/developers/getting-started/php/ Got following error while running sample.php: Fatal error: Uncaught exception 'Aws\Common\Exception\InstanceProfileCredentialsException' with message 'Error retrieving credentials from the instance profile metadata server. When you are not running inside of Amazon EC2, you must provide your AWS access key ID and secret access key in the "key"

AWS Lambda NoClassDefFoundError

久未见 提交于 2019-12-17 09:47:08
问题 I am having difficulty with a Java based Lambda function setup to receive messages from SNS. My function looks like the below: package com.mycompany; import com.amazonaws.services.lambda.runtime.Context; import com.amazonaws.services.lambda.runtime.LambdaLogger; import com.amazonaws.services.lambda.runtime.events.SNSEvent; public class LambdaHandler { public void Handler(SNSEvent event, Context context) { //Process the event } } It compiles just fine and I don't have any problems uploading

How do I store aws pinpoint messages to rds?

妖精的绣舞 提交于 2019-12-17 07:55:33
问题 I am new to aws and I have been experimenting with aws pinpoint two way messages. Right now my customers are able to send messages to my long code and I already have predefined responses based on some key word s. The problem is some users do not use the key words that I have captured so I want to store all messages from my customers in a database (preferably a sql server database) and send custom responses to each message. How do I achieve this? 来源: https://stackoverflow.com/questions

Production certificates not working for APNS but works for APNS_SANDBOX in AWS SNS

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-14 02:19:15
问题 We have one of our live iOS Application in the App store and we are facing following issue while integrating SNS : While creating a new Platform Application on SNS console , APNS does not accept the Production certificates but APNS_SANDBOX accepts both production and development certificates . the error which flashes is : Invalid parameter: Attributes Reason: Platform credentials are invalid (Service: AmazonSNS; Status Code: 400; Error Code: InvalidParameter; Request ID: 2f24bcbb-1b66-589f

Boto - AWS SNS how to extract topic's ARN number

戏子无情 提交于 2019-12-14 01:59:58
问题 When creating a AWS SNS topic: a = conn.create_topic(topicname) or getting the topic already created: a = conn.get_all_topics() the result is: {u'CreateTopicResponse': {u'ResponseMetadata': {u'RequestId': u'42b46710-degf-52e6-7d86-2ahc8e1c738c'}, u'CreateTopicResult': {u'TopicArn': u'arn:aws:sns:eu-west-1:467741034465:exampletopic'}}} The question is how do you get topic's ARN as string: arn:aws:sns:eu-west-1:467741034465:exampletopic ? 回答1: When you create a new topic, boto returns a Python

How to confirm subscribe and get SNS Notifications at a HTTP endpoint?

丶灬走出姿态 提交于 2019-12-13 19:35:09
问题 I'm using Amazon Elastic Beanstalk to run a nodejs web page. I just want to send notifications to this webpage from AWS SNS and catch them in real time. So, when i publish to the HTTP endpoint, nothing happens and i don't know how to get the notification. As Http endpoint, i set my AWS Elastic-Beanstalk http address. I'm reading the Amazon docs but nowhere i can find how to catch the sns message once at the http endpoint. Please, any help will be very appreciated . Thanks. 回答1: The moment you

create email notification when an ec2 instance is terminated. The Email should contain the instance details.eg:Instance Name

本秂侑毒 提交于 2019-12-13 16:27:37
问题 I have created cloudwatch alarms for cloudtrail events. I am getting the email notification whenever there is a state change. But It is tough for me to search for the instance which is deleted among hundreds of instances. It will be easier if I get the instance name in the notification Email. Have anyone tried this? 回答1: The best method is: Create an Amazon SNS topic to receive the notification Subscribe to the topic to receive notifications (eg via Email) Create a rule in Amazon CloudWatch