The Zurich release has arrived! Interested in new features and functionalities? Click here for more

AWS SNS subscription

russellprice
Tera Contributor

Hello

 

I am having problems with subscribing to an SNS topic from ServiceNow, the subscription is being listed in ServiceNow but the "Subscription URL" is showing as undefined, so we are unable to subscribe to it. these are the steps I have followed:

 

Navigate to System Applications -> Studio, and choose [Import From Source Control].
Import https://github.com/byukich/x_snc_aws_sns
Create topic in AWS
Create Subscription with HTTPS and backend https://aws_sns:<ServiceNow admin password>@<your developer instance>.service-now.com/api/x_snc_aws_sns/aws_sns
Subscription is created in SNow but subscription URL is undefined

 

This is the blog post I followed:

 

https://aws.amazon.com/blogs/mt/how-to-automatically-create-an-incident-in-servicenow-from-an-amazon...

 

Any insite would be much appreciated!

 

Thanks

2 REPLIES 2

AJ-TechTrek
Giga Sage
Giga Sage

Hi @russellprice ,

 

Here's a recommended approach:

  1. Set up an AWS SNS topic: Create an SNS topic in the AWS Management Console. This topic will act as a message bus for sending incidents to ServiceNow.

  2. Create an AWS Lambda function: Develop an AWS Lambda function using your preferred programming language (such as Python or Node.js). This function will be responsible for receiving the SNS messages and transforming them into ServiceNow incidents.

  3. Configure SNS subscriptions: Subscribe the AWS Lambda function to the SNS topic. This ensures that the Lambda function is triggered whenever an incident is published to the topic.

  4. Integrate ServiceNow with AWS Lambda: In ServiceNow, use the "Scripted REST API" feature to create an API endpoint that will receive the incidents from AWS Lambda. Write a script to parse the incident data and create new incidents within the ServiceNow platform.

  5. Test and validate: Once the integration is set up, perform thorough testing to ensure that incidents published to AWS SNS are correctly received and processed in ServiceNow.

https://aws.amazon.com/blogs/mt/servicenow-incidents-for-license-manager/

 

Please appreciate the efforts of community contributors by marking appropriate response as Mark my Answer Helpful or Accept Solution this may help other community users to follow correct solution in future.

 

Thanks

AJ

Linkedin Profile:- https://www.linkedin.com/in/ajay-kumar-66a91385/

ServiceNow Community Rising Star 2024

Hi AJ

 

Thanks for the quick reply!

 

Unfortunately creating Lambda functions and REST API scripts is beyond my skillset

 

I was hoping to troubleshoot the method i originally listed

 

Thanks

 

Russell