How to import assets from S3 Bucket to AEM directly?

Avatar

Avatar
Validate 1
Level 1
sanjanas3080058
Level 1

Likes

0 likes

Total Posts

7 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
sanjanas3080058
Level 1

Likes

0 likes

Total Posts

7 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
sanjanas3080058
Level 1

22-06-2021

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

 

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 5
Level 7
Ritesh_M
Level 7

Likes

179 likes

Total Posts

142 posts

Correct reply

44 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile

Avatar
Boost 5
Level 7
Ritesh_M
Level 7

Likes

179 likes

Total Posts

142 posts

Correct reply

44 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
Ritesh_M
Level 7

22-06-2021

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-

https://experienceleague.adobe.com/docs/experience-manager-65/assets/extending/mac-api-assets.html?l...

 

Also, I believe you can use S3 Asset Ingestor utility since you have some conditions written in AWS lambda.

Answers (1)

Answers (1)

Avatar

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

573 likes

Total Posts

728 posts

Correct reply

240 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

573 likes

Total Posts

728 posts

Correct reply

240 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile
Vijayalakshmi_S
MVP

23-06-2021

Hi @sanjanas3080058,

Is it possible for you to provide details on

  • Conditions that we are trying to check in Lambda function.
  • And this flow from S3 to AEM is a one time activity? 
  • AEM version. Do you foresee use of AEMasCS in future?