Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

How to upload a zip file from AWS S3 bucket to AEM?

Avatar

Level 1

How to upload a zip file (Package) from AWS S3 bucket to AEM (Should be uploaded as a package in Package Manager)? 
Using cURL or Java API the solution is required. 

 

Thank you!

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

6.5
1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Joy786 

 

Uploading a file from S3 into AEM will need to be a 2 step process. Download the object from S3 as a stream and then Upload it into AEM. Let us now look at them individually:

 

Downloading object from S3 - Refer to the script at https://github.com/paulhammond/s3simple

 

Uploading the file to AEM - Refer to the example curl scripts at https://helpx.adobe.com/experience-manager/kb/common-AEM-Curl-commands.html

Upload a new package

        curl -u admin:admin -F package=@"name_of_package.zip" http://localhost:4502/crx/packmgr/service/.json/?cmd=upload

 

Hope this helps!

Thanks!

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

Hi @Joy786 

 

Uploading a file from S3 into AEM will need to be a 2 step process. Download the object from S3 as a stream and then Upload it into AEM. Let us now look at them individually:

 

Downloading object from S3 - Refer to the script at https://github.com/paulhammond/s3simple

 

Uploading the file to AEM - Refer to the example curl scripts at https://helpx.adobe.com/experience-manager/kb/common-AEM-Curl-commands.html

Upload a new package

        curl -u admin:admin -F package=@"name_of_package.zip" http://localhost:4502/crx/packmgr/service/.json/?cmd=upload

 

Hope this helps!

Thanks!

Avatar

Level 1

Thanks for your reply @Fanindra_Surat !

I would need the zip (package) to be imported as a package in AEM Package Manager. Just updated my query.