Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

Joy786
Level 1
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.

1 Accepted Solution
fanindras
Correct answer by
Level 5
Level 5

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
fanindras
Correct answer by
Level 5
Level 5

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

Joy786
Level 1
Level 1

Thanks for your reply @fanindras !

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