DataSource File from AWS S3 bucket

James Santoro
Kilo Contributor

Hello,

I am attempting to pull an excel file i have stored on an AWS S3 bucket as a scheduled data import. I have set up the scheduled import, and am attempting to configure a datasource for the file, however i have been unable to make an API call to S3 in order to get the file for my dataload/Transform etc. 

Has anyone ever pulled a file from S3 before. I know ITOM has an S3 integration, however we are not paying for the ITOM module and would like to implement a custom configuration.

Any help would be appreciated.

-Drew

4 REPLIES 4

Yogi3
Kilo Guru

It appears that there is a REST API for AWS S3. Your best option is likely to make use of that using ServiceNow's Outbound REST Message functionality and use the S3 as an endpoint.

hiranmayeesahoo
Kilo Expert

Any solution on this? Did it worked with REST API or any other method?

James Santoro1
Kilo Explorer

Yes i found a solution. I had to create a custom application that created a custom Authentication string for the REST call. the application leverages a crypto.js library to encode string via an HMAC-SHA256 function.

 

the Authentication string is derived using the follow documentation from amazon.

 

https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html

Community Alums
Not applicable

@James Santoro  Hi James,

Were you able to implement a schedule import for pulling the data from AWS S3 bucket into Servicenow?