ServiceNow - AWS Lmbda Integration using SigV4 authentication and custom spoke.

SmitaH
Tera Contributor

Hi Community, we have to integrate SN with AWS lambda using SigV4 authentication. As we are not using any ready made spoke for integration and using a custom spoke, we have to configure the SigV4 authentication custom script in SN to automate the signing process ( generate headers and sign). This process also includes incorporating Crypto JS function such as HMACsha256  as a separate script include & refer it into above SIgV4 authentication script. I would appreciate any guidance on above scenario. Thanks in advance!

3 REPLIES 3

Randheer Singh
ServiceNow Employee
ServiceNow Employee

Hi Randheer , Thanks for your reply. I have been following the second link already which is specifically to config the AWS sigV4 signing, but the thing is, to autogenerate the signing headers we have to write a custom script in instance authentication script for RequestAuthAWSV4Signer where we have to set up a canonical request and call Crypto JS functions such as HMACsha256 which are not available into SN by default and pull it from Github repository. So I am looking for guidance on all of this part. I would appreciate your help on this part. Thanks again! 

SmitaH
Tera Contributor

Hello Randheer, Thank you for your reply. I have been following the second link which is specifically for AWS SigV4 config, the thing is to auto generate the headers we have to write a custom script in Instance authentication script for RequestAuthAWSV4Signer where we have to set up a canonical request and need to call Crypto JS functions to hash the sign part. Also Crypto JS functions such as HMACsha256 is not available by default in SN we have to pull it from Github repository. So I am looking for guidance on all of this part. I would appreciate your help. Thanks again!