Hi All,
We are trying to upload assets from S3 bucket to AEM through AWS Lambda Functions.
Was trying through curl command ,solution seems to be not working for this setup as we need to convert the input stream of S3 Object to file and then write to AEM instance. But the problem is we will not be able to save the converted file in any temp location as the standalone Java code will be triggered from AWS Lambda.
Could you please let us know if there is any approach to upload the assets to AEM from S3 directly? Please note that we need to upload assets selectively based on some conditions which we are handling in AWS Lambda (Standalone Java Class).
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @sanjanas3080058 ,
You can use Asset HTTP API available. we have CRUD operations support for all REST operations.
Please refer this video-
https://www.youtube.com/watch?v=Yn7ybOwfIYY
Reference-
Also, I believe you can use S3 Asset Ingestor utility since you have some conditions written in AWS lambda.
Hi @sanjanas3080058 ,
You can use Asset HTTP API available. we have CRUD operations support for all REST operations.
Please refer this video-
https://www.youtube.com/watch?v=Yn7ybOwfIYY
Reference-
Also, I believe you can use S3 Asset Ingestor utility since you have some conditions written in AWS lambda.
Hi @Ritesh_Mittal,
Thanks for your reply. Can we access the S3 Asset Ingestor utility programatically?
Also I tried to make use of Assets HTTP API's below request, but the problem I am facing is that from S3 bucket I would be getting it as input stream and if you notice "@myPicture.png" would be an actual file. I tried sending the inputstream directly but that would give me a bad request error. Any help would be really appreciated
Create an asset
Place the provided file at the provided path to create an asset in the DAM repository. If a * is provided instead of a node name, the servlet uses the parameter name or the file name as node name.
Parameters: The parameters are name for the asset name and file for the file reference.
Request
Views
Replies
Total Likes
HI @sanjanas3080058 ,
If you have input stream of S3 objects. You can also consider using Asset Manager APIs. the method accepts input stream to create asset. Though I have not tried but worth to try.
ACS commons is also using the same-
Views
Replies
Total Likes
Views
Replies
Total Likes
Hi @Vijayalakshmi_S,
Could you please take a look at this and provide me your inputs?
Thanks,
Sanjana
Views
Replies
Total Likes
Hi @sanjanas3080058,
Is it possible for you to provide details on
Views
Likes
Replies