amazon-sns

App connected to FCM not receiving notification from AWS SNS

可紊 提交于 2019-12-21 05:45:09
问题 I've connected an Android app to Google Firebase Cloud Messaging service (FCM) following this guide, and I've followed this answer to setup the connection between FCM & AWS SNS. I could successfully receive message sent from FCM console but not from AWS SNS console. The message delivery status logged on AWS showed SUCCESS for every message I've sent while no notification was shown on my device. Is there a way to check what's going on? 回答1: The problem here is that AWS SNS sends what Google

How Publish SNS message in C# Lambda Core

自闭症网瘾萝莉.ら 提交于 2019-12-21 04:26:15
问题 I found the code below at https://forums.aws.amazon.com/thread.jspa?threadID=53629: AmazonSimpleNotificationService sns = AWSClientFactory.CreateAmazonSNSClient(key, secret); PublishRequest req = new PublishRequest(); req.WithMessage("This is my test message"); req.WithSubject("The Test Subject"); req.WithTopicArn(topicArn); PublishResponse result = sns.Publish(req); But does it work in .NET Core? If so how, and what using statements? I used this Nuget install: Install-Package AWSSDK

Invoke AWS Lambda SNS event only after SQS subscription on same topic has been processed

喜你入骨 提交于 2019-12-21 04:16:09
问题 I would like to implement an Amazon SNS topic which first delivers messages to a SQS queue that is a subscriber on the topic, and then executes an AWS Lambda function that is also a subscriber on the same topic. The Lambda function can then read messages from the SQS queue and process several of them in parallel (hundreds). My question is whether there is any way to guarantee that messages sent to the SNS topic would first be delivered to the SQS queue, and only then to the Lambda function?

Send an SMS for a cloudwatch Alarm outside of us-east?

流过昼夜 提交于 2019-12-21 02:43:33
问题 It looks like AWS does not provide SMS as a protocol for SNS topic subscribers outside of US East. I wanted to hook up my CloudWatch alarms and receive text messages when something breaks but cannot send them to SMS. 回答1: YES! After some digging I was able to get this to work. It's a little more complicated than just selecting a topic or inputing an alarm but it works great! The key to the solution was using AWS's lambda functions! The flow of data is such: > Alarm triggered > -> Push

AWS API-Gateway communicating to SNS

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-20 10:32:44
问题 I am building an API which will be serviced by Lambda functions but I need these to be asynchronous so rather than connecting the API-Gateway directly to the Lambda function I'm using the "AWS Service Proxy" to publish SNS messages and then have the Lambda function subscribe to the relevant SNS topic so it receives delivery of the requests. Here's a picture which illustrates the flow: I have tested both the Lambda function in isolation as well pub/sub messaging between SNS and Lambda but I am

AWS: Publish SNS message for Lambda function via boto3 (Python2)

女生的网名这么多〃 提交于 2019-12-20 10:02:47
问题 I am trying to publish to an SNS topic which will then notify a Lambda function, as well as an SQS queue. My Lambda function does get called, but the CloudWatch logs state that my "event" object is None. The boto3 docs states to use the kwarg MessageStructure='json' but that throws a ClientError. Hopefully I've supplied enough information. Example Code: import json import boto3 message = {"foo": "bar"} client = boto3.client('sns') response = client.publish( TargetArn=arn, Message=json.dumps

How do I create an Alarm to detect DynamoDb limits have reached a certain percent and then increase it

為{幸葍}努か 提交于 2019-12-19 19:50:27
问题 I'm writing a web application that has steadily increasing traffic through the day. I'd like to create an Alarm that can detect if my read / write limits have reached a certain percentage (like 80%), and then increase that limit. I will then decrease it again at midnight. I've tried creating an Alarm - "Average" seems a bit useless and is always 1.0. "Sum" is more useful so I assume i should use this. I also assume i should use Consumed Write/Read Capacity at the metric name. Problems: Sum

Push notifications: Why use Amazon SNS over Google's GCM/FCM?

为君一笑 提交于 2019-12-19 16:54:40
问题 I have created a mobile app for Android and iOS using Phonegap Build. Last year I had nearly finished writing code to use GCM (Google Cloud Messaging) for remote push notifications - which can go out via Apple's APNS too - but the project was shelved. This year the project is resurrected and I find Google has changed everything to Firebase (FCM). I then read some enticing things about Amazon SNS handling notifications. Just when I started to think SNS might be a better option, I noticed you

AWS Lambda & SNS: Invoke Lambda cross-region

∥☆過路亽.° 提交于 2019-12-19 08:07:35
问题 I have a Lambda function deployed to several regions. I would like to publish a message to SNS that will invoke these functions. Using aws-cli I've created the topics, given Lambda permission to talk to SNS, and create the subscriptions. The subscription appears to be created successfully, and I can see it in the AWS console. But, it doesn't work. The lambda function does not get invoked. 回答1: This is CloudFormation based example. You have to add invoke permission for SNS to the Lambda

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

瘦欲@ 提交于 2019-12-18 18:53:10
问题 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? 回答1: You will need a NAT server running in your VPC to route traffic outside of the VPC. AWS now offers a