Forum Discussion

mohamadelmardin's avatar
mohamadelmardin
New Contributor III
8 years ago

Best practices to publish to a AWS SNS topic

SnapLogic currently doesn’t have a dedicated snap pack for AWS SQS and SNS integration. Though we can use JMS consumer/producer snaps to configure it for SQS seamlessly however there is no mechanism to do that for SNS.

I guess the only possible way to publish to an SNS topic within a pipeline is use the REST api via GET/POST snaps. Is that true? What are the configuration steps required for security to send access and secret keys with the REST snap in order to do that? where should be keep these security tokens in the http parameter or http header? how can we further protect them?

Please provide best practices with working demo if any.

12 Replies

  • aleung's avatar
    aleung
    Contributor III

    I have shared sample pipelines on the “Showcase” section. You should be able to find the pipeline under Endpoints / AWS SQS.

    You could use the JMS Producer to send message to AWS SQS and JMS Consumer to retrieve AWS SNS messages.

    • mohamadelmardin's avatar
      mohamadelmardin
      New Contributor III

      Thank you @aleung but this doesn’t address my issue and question. I don’t have a problem publishing and consuming messages from SQS. My problem is only with publishing to SNS topic since there isn’t snap to handle SNS topic publishing. I was wondering if there is a workaround either by using REST or javascript snaps to achieve that purpose.

      • aleung's avatar
        aleung
        Contributor III

        In that case you need to get AWS CLI and python install it in your groundplex. Once you have this setup, you could try using “Execute Command Line” under Utilties folder in Box to execute: aws sns publish.

        Reference: publish — AWS CLI 1.25.66 Command Reference

    • tochen_snap's avatar
      tochen_snap
      New Contributor II

      Hello Aaleung, Where is the “showcase” that you are talking about? I have hard time to find it. thx

    • Garrett's avatar
      Garrett
      New Contributor II

      Did you ever resolve this / determine which account to use?