on 2018 Mar 07 5:16 AM
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
Request clarification before answering.
You can peruse Rajesh's blog if the file is of size allowed by your PO server:
If the file is huge, try this:https://blogs.sap.com/2020/09/09/uploading-huge-file-from-sap-po-to-aws-s3/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
59 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.