AWS SDK in Servicenow

Vamsi Chintapa1
Tera Contributor

Hi All 

I am trying to call AWS Workspaces from ServiceNow through outbound Rest Message we are getting the output as 

{"Output":{"__type":"com.amazon.coral.service#SerializationException","Message":null},"Version":"1.0"} when reached

AWS support regarding this issue the Support team has mentioned we need to install SDK to make a rest call from

ServiceNow and provided some standard SDK list mentioned below

https://aws.amazon.com/tools/ 

Is there any way to install above-mentioned SDK in ServiceNow. 

Regards,

Krishna.

8 REPLIES 8

how would you get  x-amz-content-sha256 ?

Hardik Benani
Mega Sage
Mega Sage

This is default ServiceNow architecture, you can't install Java binaries unless you have a self hosted instance. However ServiceNow provides you capabilities to add SDK using the MidServers.

e.g. You can look at Cloud Management plugin which utilised AWS SDKs which are installed in lib directory of MidServer. In case you need a custom one you can install using below example:

https://docs.servicenow.com/bundle/madrid-servicenow-platform/page/product/mid-server/task/t_SynchronizeAJARFiletoMIDServers.html

http://www.john-james-andersen.com/blog/service-now/video-use-custom-jar-files-on-a-mid-server.html 

Once done you can call the package in in your MidServer script include files.

In case you want to do it AWS REST API, the most complex bit is authentication, you will have to write your code for the same or try getting your hand on Istanbul version of ServiceNow (via personal developer instance) and enable cloud management plugin, it has required script includes for  AWS Authentication and calling functions via REST API.

Also in case you want to view the MidServer route, try enabling the new CMP plugin from Jakarta and look into MidServer script includes for AWS.

Attached the the Istanbul version of script includes you can use in case you want to go direct REST API route, but easiest would be to use MidServer based route which is more scalable.

P.S. If my suggestion helped then please mark as helpful and/or correct so other community members can benefit from this information.

Also the things and files attached above for REST API seem to be described below:

https://community.servicenow.com/community?id=community_question&sys_id=4e68786fdb242b08b2102926ca9619db&view_source=searchResult 

If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list."