question

Vijaya lakshmi avatar image
Vijaya lakshmi asked

integrating ServiceNow with Chef using amazon SQS

I have a use case where ServiceNow creates an SQS topic :

sendMessage(
   current.variables.requested_for.u_ad_samaccountname.toString(),
   current.variables.ssh_key.toString()
);

function sendMessage(user_name, ssh_key)
{
   var formatter = null;
   try
   {
       formatter = new SshKeyMessageCreator(user_name, ssh_key);
   }
   catch(e)
   {
       gs.log('DEBUG >>> error: ' + e);
       return;
   }
   var msg = new AwsSqsMessage('https://sqs.us-east-1.amazonaws.com/465310850895/testqueue2', gs.getProperty('aws.sqs.acctprov.id'), gs.getProperty('aws.sqs.acctprov.key'), formatter.message);


and I need to access this message to trigger a cookbook in order to create a user in chef server


aws
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers