SECTION ONE: PROCESS OVERVIEW
Amazon S3 is used for 2 projects:
- Files for membership section (published through AccessAlly)
- Files for BOS Validator project (SAAS for Elite group)
SECTION TWO: PROCESS EXECUTION
To create a new bucket it is best to copy settings of existing one - as in the past we’ve had issues with some of the locations - they didn’t work well with AccessAlly plugin.
Once you create a bucket, you can create subfolder(s) and upload the files:
In wordpress, they are published on https://members.bettertraderacademy.com/ using the “protected content” tab:
Add the file name, location (amazon S3), bucket name, select the file and set the permissions and if required also conditional redirect (both based on tags the user does/doesn’t have):
When you need to update the file, you can just upload the new file to Amazon server, no changes required in Wordpress as long as the name of the file is the same - including capital letters, dots, etc - simply make sure the file on amazon server was overwritten. And that there isn’t a new one that was added. While the old one is still there.
And then, of course, test it if you download the updated version.
To manage access of individual users to buckets, go to IAM (Identity and Access Management):
Create a new user and add a policies based on the access the new user should have access to:
All policies that we have start with “BTA”:
The user should have “BTA_list_all_buckets” to see the buckets. But to get access to them, you need to grant a policy that allows the person to access the bucket and add files.
For example for Elite group, the bucket name is “bta-elite”:
So we need to create a policy that allows access to this bucket:
In case you create a new policy, the policy will look the same, the only thing that needs to be updated is the bucket name (highlighted yellow).
Then go back to users, select the one you want to edit and click add permissions:
In case the interface changes, go to official Amazon IAM website:
https://docs.aws.amazon.com/iam/
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article