Use SNAS with Amazon SNN Simple Handle

I need to use the Amazon Simple Notification Service from a ruby ​​app and don't know where to start.

Do you have any recommendations on where to start?

+5
source share
2 answers

To get started with Amazon services, follow these steps:

  • Create an account on Amazon AWS .
  • Go to SNS and create a theme
  • Install amazon aws sdk gem aws-sdk-ruby . and open irb
  • Here is sample code to call SNS

    required "aws-sdk"
    
    Aws.config.update({region: 'your aws region',credentials:
    Aws::Credentials.new('aws access key', 'aws secret key')})
    
    c = Aws::SNS::Client.new(region: 'your aws region')
    
    c.operation_names #shows you list of operation you can do.
    
    c.publish({topic_arn: 'arn', message: "my message"})
    

Hope this helps you. Here are some more useful links:

+9
source
+1

All Articles