Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

AWS Signing Signature

waseem5
Kilo Expert

Hi,

We are trying to invoke AWS from ServiceNow and need to get signature by using HMAC-SHA26. We want to imitate the methods of encryption from crypto-js. For example, below needs to be coded in ServiceNow scripts: Crypto.HMAC(Crypto.SHA256, dateStamp, "AWS4" + key, { asBytes: true}

We have found below Script Include but unable to locate the exact method within:

  1. AWSRequestSigner
  2. AWSRESTMessage
  3. AWSRESTPostMessage
  4. AWSRESTRequestSigningUtil
  5. FormationRESTActivityBase

If anybody here has any input, it will be of great help!

Thanks in anticipation

Waseem

12 REPLIES 12

I don't know. My team spent a long time trying to figure out where that script came from, but we never did find out.

I think its is a part of Cloud provisioning and governance module. Do install it in personal instance and copy the script from there.

harshini_ks
ServiceNow Employee
ServiceNow Employee

I am using STS to assume role so the first call to STS works with AWSRequestSigner. Now for second request, since credential is dynamic, I need to use script to generate signature and its getting harder to do it. Any util that can be used instead?