Help required on a how to upload a file from ServiceNow on AWS S3 bucket without spoke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2022 06:49 AM
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 ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2022 02:04 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2022 02:09 AM
Incidentally here is the API Reference : https://docs.aws.amazon.com/AmazonS3/latest/API/API_Operations_Amazon_Simple_Storage_Service.html

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2024 07:45 AM
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