Copy assets from DAM to S3 bucket programmatically | Community
Skip to main content
Level 3
July 13, 2022
Solved

Copy assets from DAM to S3 bucket programmatically

  • July 13, 2022
  • 1 reply
  • 1014 views

I have a folder in DAM, say /content/dam/documents and whenever an asset is added to this path, this should be copied to Amazon S3. 

The approach I planned was to have an event listener which will be triggered whenever a node is created in this path.

However, I'm not sure how this asset could be copied to S3 when this event is triggered. 

I would like to know how this connectivity could be established between S3 and AEM and if there are any technical documentations available on this topic

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SantoshSai

Hi @pixislinger ,

One out of may ways is to implement Workflow Launcher and use Java S3 Java API as mentioned here: https://stackoverflow.com/questions/66063565/aem-adobe-experience-manager-upload-only-some-assets-to-aws-s3

Additionally, I would consider AssetSync - as It uses an incremental approach so only the files that have changed will be moved.

for more details please visit: https://github.com/dmitrybelyakov/dam-sync 

Hope that helps!

Regards,

Santosh

1 reply

SantoshSai
Community Advisor
SantoshSaiCommunity AdvisorAccepted solution
Community Advisor
July 13, 2022

Hi @pixislinger ,

One out of may ways is to implement Workflow Launcher and use Java S3 Java API as mentioned here: https://stackoverflow.com/questions/66063565/aem-adobe-experience-manager-upload-only-some-assets-to-aws-s3

Additionally, I would consider AssetSync - as It uses an incremental approach so only the files that have changed will be moved.

for more details please visit: https://github.com/dmitrybelyakov/dam-sync 

Hope that helps!

Regards,

Santosh

Santosh Sai