cancel
Showing results for 
Search instead for 
Did you mean: 

Uploading file to AWS S3 bucket via REST API

sunit_s
Participant
0 Kudos

Hi Experts

I want to use REST adapter to upload file in Amazon's AWS S3 bucket. I have the target URL and Developer guide suggests I should use Authentication header

Authorization: AWS AWSAccessKeyId:Signature

https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html

I have AWS Access Key Id and AWS secret access key. Now I have to create signature based on these. The Signature element is the RFC 2104 HMAC-SHA1 of selected elements from the request. I understand that I have to use AWS Secret access key on some string generated from request elements like HTTP-Verb, Date, etc. I assume I have to write some JAVA code for it.

I came across this discussion in may 16.

https://archive.sap.com/discussions/thread/3855339

But its not AWS S3 and signature is passed via query string and not http header. Are there any advancements in PI REST adapter since above discussion. How best to generate signature and execute REST API call for AWS S3? Our version is sap pi 7.4 sp 12.

Regards

Sunit

View Entire Topic
poornimal_nathan
Explorer
0 Kudos