Setup Amazon S3
Manage large files uploaded by users without the cost of any extra hardware. Store the files uploaded on your OnPrintShop web store on AWS (Amazon Web Services). Amazon Simple Storage Service (Amazon S3) is a storage service offered by Amazon. All the customers of OnPrintShop can store and manage any amount of data range of use cases, such as websites, mobile applications, backup and restore, archive, enterprise applications, IoT devices, and big data analytics.
The service is fast, reliable, secure, safe, and inexpensive. Thus, with easy steps, you can avail the benefits of AWS on your OnPrintShop website.
Read the below systematic guide to integrating Amazon S3 services with your OnPrintShop website.
The successful login will redirect you to your AWS Dashboard.
- To create Bucket, go to AWS Dashboard >> 'Services' >> Under 'Storage' > S3:
- This will take you to the Bucket page:
- To create a new bucket, click on the Create Bucket button:
- Enter basic information such as the Name of your bucket, region of your region and other basic details.
- Complete the remaining steps to create a bucket. Once done, click on the Create bucket button at the bottom of the page:
NOTE: While creating a bucket, select an appropriate region.
In order to transfer data from your OnPrintShop store to AWS, configure the CORS Code to AWS Account.
Retrieve the code from Admin Panel Store Configuration >> External Service Settings >> Cloud Storage >> Amazon S3 Cloud Storage >> Action >> Edit:
Under the Settings, click on the Help icon against the "Enter Bucket Name" field. Copy the code displayed.
- After creating the bucket, you need to edit permissions so that the file is uploaded in your bucket. Without this permission, your user will not be able to upload a file on the cloud.
- On your AWS Console, click on your created bucket from the list:
- Click on the Permissions tab and scroll down to CORS Configuration:
- Click on the Edit button:
- Paste the CORS code copied from Admin Panel.
- Click on the Save changes button.
- After CORS configuration, there is a need to create ‘Amazon Access Key ID’ and ‘Amazon Secret Key’.
- You can get the access key from the Amazon S3 Dashboard >> Your Account Name on top right corner > Security Credentials:
- On the My Security Credentials dashboard, locate Access keys for CLI, SDK, & API access:
- Click on the Create access key button to get the Access Key ID and Secret Access Key.
- Click on the Show Access Key and Download Key File.
Note: Download your key file. It contains your new access key ID and secret access key. If you do not download the key file now, you will not be able to retrieve your secret access key again.
In your Admin Panel, go to Store Configuration >> External Service Settings >> Cloud Storage >> Amazon S3 Cloud Storage >> Edit:
Enter necessary details such as Bucket Name, Amazon Access Key ID, Amazon Secret Key, and Amazon Region.
To enable customers to upload files directly into your AWS Cloud storage you will have to Allow Cloud File Upload for a product from the Product section.
Enable this from the Admin> Products>>Products> ‘Action’ dropdown of a particular product> Settings> ‘Upload’ Tab> Allow Cloud File Upload> Select ‘Both’ option:
After enabling this option your customers will see an option to upload large files on the Storefront:
After the successful integration of Amazon S3 Cloud storage on your website, a user will be able to upload large files directly into your Amazon S3 bucket.
A folder "Orders" will be created with a sub-folder with the name same as the Order Number: