Help required on a how to upload a file from ServiceNow on AWS S3 bucket without spoke

Sonu
Tera Guru

Hi 

I need to upload a file on S3 bucket on a regular basis from servicenow instance

1. I have already configured .IAM Role based discovery which has read and write permission on aws.

in the above case how can i use the credential less based .to upload on a desired S3 bucket path  ? 

7 REPLIES 7

Richard Hine
Tera Guru
Tera Guru

Sonu,

The question I would ask is how you are expecting to interact with S3 without a spoke? The token you need to generate to authenticate with the S3 API is complex and requires multiple SHA-256 hashes.

https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-header-based-auth.html

I had to build this bespoke for a customer as at the time the spoke did not support MID servers and their S3 buckets were in a VPC.

You are looking at multiple layers of complex code to make this work, I would advocate the use of the spoke where possible for this.

Richard

pavan9885
Tera Guru

I found a SDK Power shell script to upload the docs into S3 From Mid server

https://gist.github.com/dpo007/f7e7fab2d7f44f2a94eaae9ad5980c0a

Please let me know if you guys have different approach