Amazon S3 is storage for the Internet. It is designed to make web-scale computing easier for developers. Amazon S3 provides a simple web-services interface that can be used to store and retrieve any amount of data, at any time, from anywhere on the web. It gives any developer access to the same highly scalable, reliable, secure, fast, inexpensive infrastructure that Amazon uses to run its own global network of web sites. The service aims to maximize benefits of scale and to pass those benefits on to developers. Learn more here:?Amazon S3’s Website
Steps For Integration
- Sign up for an account?at the?Amazon Web Services Site?or login there.
- Go to the Amazon Web Services dashboard
- Setup your connection key and secret?by clicking your name in the top right and from the drop down select My Security Credentials.
- Select Users?from the left menu of the AWS Dashboard.
- Click Add User?from the top left of the users panel.
- Setup User Details?you can enter any user name here, but MUST check the Programmatic access box.
- Click Create Group in the middle of the screen. We want to setup a group so that the permissions of your key are as secure as possible and prevent unauthorized access within your AWS account.
- Setup Your Group by entering any group name and selecting ONLY the AmazonS3ReadOnlyAccess from the policy list. Click Create group?once you have selected this option.
- Select your new group and click Next: Review
- Click Create user to complete the user setup.
- Click Show to see your secret access key
- Save your Access Key ID and Secret Access Key for Later
- Return to the main S3 management page by selecting this from the top left Services menu under storage
- Create a new bucket by clicking ‘create bucket’
- Enter a bucket name any name will work and click next
- Set Properties – nothing needed here unless you feel these properties will help you with your system (optional), click next in most cases.
- Set Permissions – The default permissions are correct. Important that the owner has Read/Write and your public permissions are set to ‘Do not grant public read access to this bucket (Recommended)’ and system properties to ‘Do not grant Amazon S3 Log Delivery group write access to this bucket’. Keep in mind although we have NO public access, the security we setup previously will allow the cart to access and provide the file to users that purchase your download.
- Create Bucket – Click create bucket to finish setup.
- Return to the WP EasyCart Settings and add your Key, Secret, Bucket, and Bucket Region to your system settings. This is found in the WP EasyCart -> Settings -> Third Party.
That’s it! You can now upload your downloadable goods to your new bucket. Read below for more info on adding/uploading files.
Adding/Uploading a File
- Navigate to your bucket by clicking the bucket name in the list of buckets. If you just created the bucket then you are already there.
- Click the Upload button (do not create a folder for WP EasyCart files, this may cause issues on the product setup side in EasyCart).
- Click Add Files and select the files you wish to upload. Once you add those files, just click next.
- Set Permissions – You do not need to do anything here, the default settings are correct! The Owner should have read/write permissions and public permissions are set to ‘Do not grant public read access to this object(s) (Recommended)’. This is important so that the public does not access your files without first purchasing. EasyCart uses your security credentials to provide access to the appropriate files after purchase.
- Set Properties – This is up to you, but standard and none should be fine and click next to continue.
- Review – Click upload if you are happy with the settings.
That’s it! Now your uploads will be available for you to choose in the product setup. Read more below to see how to make the connection.
Setting Up a Downloadable Product
You can create or edit any product and navigate to the ‘Download Options’ section. In this section, choose Download Product, Download Location is Amazon S3, and you can choose any file from the S3 File box that is in the bucket you have setup. If your setup is wrong, it will have an error in this area and you will need to correct the setup to fix this issue.
You can get information about setting up a downloadable product by visiting?here?and reading about downloadable products in the administration console.