Site icon MageComp Blog

Step-by-Step Guide to Configure Amazon S3 Integration with Magento 2

How to Configure Amazon S3 with Magento 2

Hello Magento Folks,

How are you all working? Today I am going to illustrate to you all How to Configure Amazon S3 with Magento 2. Also, make sure you don’t forget to check our last article where I have illustrated Set up Google Analytics eCommerce tracking in Magento 2. Let’s Get Started?

Introduction:

What is Amazon S3(Simple Storage Service)?

Basically, Amazon S3 (Simple Storage Service) is cloud storage that helps to upload your images, downloadable products and catalog into the AWS servers. There are many benefits of the Amazon S3; it just connects your Magento 2 Store with the Amazon AWS Servers. It will help you in increasing the performance of your website and improves the loading speed of your Magento 2 website. We choose Amazon cloud service because it is one of the best storage services provided by Amazon.

Why Magento 2 Amazon S3 Extension?

Steps to Configure Amazon S3 with Magento 2:

Step 1: Install Magento 2 Amazon S3 Extension on your Magento 2 Store and find the Amazon S3 in your Admin panel.

Step 2: Enable the extension from the backend and add appropriate details in the configuration part as per given below instructions.

Step 3: Uploading Media Files to Amazon S3 server

You will have to Install Amazon Library, for that run the given below command

composer require aws/aws-sdk-php

Step 4: For syncing all your media files to the Amazon S3 Server

For that, we will require to enable the module by using the backend and fill out your Amazon S3 information. Also, make sure you run the below-given commands in your Magento Root Path.

To upload previous data files:

php bin/magento amazons3:export

Make sure you check that you haven’t run the enable command because you have to run the export command for syncing all the existing data files to S3. In case you run the enable command then no worries you can fire the disable command before firing the export command.

For enabling the Amazon S3 Extension

php bin/magento amazons3:enable

For Disabling the Amazon S3 Extension

php bin/magento amazons3:disable

Step 5: Setup the base media URL in the system configuration.

For setting up the base media URL navigate to System->Configuration->General->Web-> Base URLs / Base URLs as shown below.

Admin can also review the URL of all your product images that are uploaded on your Amazon S3 Server.

Admin can also set the URL manually as displayed in the below screenshot.

After the completion of uploading, you can view the images of your products as per given below screenshot.

After the completion of uploading, you can view the images of your products as per given below screenshot.

Step 6: Upload Downloadable Products on Amazon S3

Admin can upload all the downloadable products on their Amazon S3 server for that Navigate to Amazon AWS account and upload files in your bucket. After that, you will get the URL of the downloadable product from the Amazon S3 servers as shown in the screenshot below.

Step 7: Add URL in the Back-end Product Edit Page

Once you upload the downloadable product copy that URL and paste it on your downloadable product’s file URL in Magento 2.

That’s It.

Final Words:

Hopefully, with the above steps, you will be able to configure Amazon S3 with your Magento 2 store. In case of any difficulties feel free to write it in the comment box I am solving there. Also, share the blog with your E-commerce friends who are willing to configure Amazon S2 in Magento 2. Till then Stay Happy and Stay Safe.

Happy Configuring.

Exit mobile version