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

Appli
Mega Sage
Mega Sage

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

Hope it helps

Sonu
Tera Guru

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..

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..

Ram Devanathan1
ServiceNow Employee
ServiceNow Employee

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