Before connecting the Media Storage To Cloud plugin with Amazon S3 bucket, ensure that you have already created an IAM user account on your AWS account.
If you haven’t created an IAM user account, follow this documentation to create it.
If you already have an IAM user account you want to use, follow these simple steps to connect the Amazon S3 bucket with Media Storage to Cloud:
Go to your Dashboard > WP Cloud. Amazon S3 will be selected by default.
You will see the following form:
Now you have to provide your Amazon S3 credentials.
Insert the Access Key ID of the IAM user account you’ll be using.
Insert the secret access key of the same IAM user.
Type the name of the bucket you want to authorize with Media Storage To Cloud.
Enter the region name of your bucket.
Here’s the bucket region list:
Remember that you have entered the relevant code for your bucket region. For example, for “Oregon”, your bucket code would be “us-west-2”.
Now, click on the blue Save button.
This message will show up to inform you that your data has been successfully saved.
Now go to the Sync section.
Choose Amazon S3 from the upper tab.
Here you will get two options from the Select sync option dropdown menu.
If you choose Send all data to storage, it will sync all of your media files to the Cloud.
And if you choose Send unsynced data to storage, it will only upload the unsynced media files to the Cloud.
For the first time, choose Send all data to storage option, you may choose to upload unsynced data to storage option next time if you only want to upload the unsynced data to the storage.
Now click on Sync button.
Your media files will be started syncing with your Amazon S3 bucket.
Now you have to wait for the media files to be synced with the bucket.
After syncing the media file, a success message will appear.
Now go to the Settings section.
Click on Amazon S3.
You’ll find these 3 options:
Turning on this feature will serve all the media files on your website directly from the Amazon S3 bucket.
Turning on this feature will auto-sync all the new media files you will be uploading on your media library with the bucket.
Turning on this feature will auto-delete any media file from the Amazon S3 bucket if it’s deleted from the media library.
Turn on the features you want to use.
Now click on the blue Save button.
This message will show up confirming that your new settings have saved.
Now you’re ready to offload your WordPress media files to Amazon S3 bucket and serve from there.