I am trying to implement amazon sp-api notifications in the docs. They have written that they will send a notification to destination aws sqs. I am trying to figure out how I will get that notification from sqs. I have tried research about it but not found any luck.
is there any can please explain?
Related
We are sending emails using AWS SES. I know how to configure notifications for bounces and complaints using SNS. Infact I have configured SNS to deliver those notifications using https endpoint.
I have a springboot rest service that I would like to receive those notifications in. Can anybody point to a sample springboot rest controller to receive and process these notifications? Any help will be greatly appreciated.
is it possible to do a post processing (besides transformation) of response in API Gateway?
For instance POST call to API Gateway goes to my Rest API and after response is return, API Gateway publishes an event (call lambda or SNS in the background).
Thanks
At present, there is no direct option for this in Api-Gateway. However, you can create a JSON message and push it to SNS topic which can call AWS Lambda or can be pushed into SQS for later process. Pushing into SNS can be done using AWS SDK.
I am looking to have a Push Notification service handling both FCM and Apple Push Notifications. I am looking into Amazon SNS but I can't figure out from the docs whether they support Token-Based authentication for Apple Push Notifications Service.
Amazon SNS now supports APNS token-based authentication. https://aws.amazon.com/about-aws/whats-new/2021/11/amazon-sns-token-authentication-api-mobile-notifications/
Amazon SNS currently does not support token based APNS. Take a look on Firebase, it should be able to handle both.
Amazon Pinpoint is capable of using .p8 files when sending messages over APNS.
The only information I found is that you can view those events through ceilometer or RabbitMQ. Would be nice if I can get those events directly through APIs.
Each of the openstack services have 'exchanges' and 'topics' in rabbitmq
you can use Rabbitmq to connect to these exchanges and topics to get notifications via messages.
Unfortunately, currently there is no way to get notifications from individual OpenStack services.
I am trying to set up a basic SNS subscription but it looks like AWS never sends the confirmation, either through the console or using the SDK.
Steps I have taken so far:
I have set up a Topic using the AWS console
I have added HTTP subscriptions to both an ngrok tunnel URL and also a public web server URL using both the AWS console and the ruby SDK
I have allowed everyone to subscribe to the Topic by editing the Topic policy in the AWS console
By tailing the logs on both my localhost and public web servers I can see that no request is ever sent to the endpoint.
I'm pretty stumped here because it seems like it should definitely be working, or at least sending something (anything) to my endpoints?
The code I'm using for the ruby sdk is as follows:
sns = AWS::SNS.new(access_key_id: ENV['AWS_ACCESS_KEY_ID'], secret_access_key: ENV['AWS_SECRET_ACCESS_KEY'])
# I only have one topic
topic = sns.topics.first
topic.subscribe(URI.parse('http://<NGROK_URL>.ngrok.com/notifications/notify'))
topic.subscriptions.first
# returns: => <AWS::SNS::Subscription arn:PendingConfirmation>
This turned out to be an issue related to the region I was working in. I changed to Oregon and all confirmations are sending immediately.
There must be some permissions setting somewhere that prevents you from sending any messages at all from certain regions, but it was failing silently.
For me, it appears that it may not be the region (though I was trying us-east-1 too), but how ngrok's network is set up. I used a different site-forwarding service (finch) and was completely successful. This AWS forum topic makes be think that the problem may be intermittent, too.