I need to to use Amazon Simple Notification Service from a ruby-based application, and have no idea where to start.
Do you have any recommendations on where to start?
To start with Amazon services, Follow the steps :
Here is sample code to invoke SNS services
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 would help you. Here are some more useful links :
Check out the Amazon SDK for Ruby. SNS is one of the services supported.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With