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-05-2022 08:15 AM
Hi, not sure how good is to leverage ITOM/Discovery for uploading files to the cloud resource. May be you can reconsider an approach and still use Amazon S3 spoke instead.
Hope it helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2022 08:54 AM
lemme rephrase it.. ive used the IAM role based for discovery of aws cloud resources.
Now help me on how to use the same method to upload a file on S3 bucket ?
Note: Credentials updating in Credentials table is strictly not possible use IAM roles to do the same is the recomendation from Sec team. Spoke needs Creds. anyways..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2022 08:54 AM
lemme rephrase it.. ive used the IAM role based for discovery of aws cloud resources.
Now help me on how to use the same method to upload a file on S3 bucket ?
Note: Credentials updating in Credentials table is strictly not possible use IAM roles to do the same is the recomendation from Sec team. Spoke needs Creds. anyways..

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2022 07:02 PM
IntegrationHub does not support pure role based approach - credentials are needed - whether you go with spoke or with writing your own action (REST step)..
Also, as you would know, in Discovery approach, again, the IAM role is associated to the MID. IntegrationHub is not using MID.
So to your question, you could write a mid script include which will call the necessary API and call that via flow script action.
Take a look at the Cloud Access interface plugin / app, that has samples of such code - it works via mid.
Ram