We prepare a tutorial on how you can connect your Amazon web services (AWS) account to TOPOL.
Create an S3 bucket dedicated to TOPOL plugin integration
Log in to Your AWS console https://s3.console.aws.amazon.com/s3/home
Click on “Create bucket”
Fill form:
Bucket name -> your-bucket-name (for example topol-plugin)
In Object Ownership, select ACLs enabled and select Object writer.
Deselect “Block all public access” and select “ - I acknowledge that the current settings might result in this bucket and the objects within becoming public.” for confirmation.
Rest leave with defaults and click on the “Create bucket” button
Add CORS configuration for the bucket to enable the editor to interact with the bucket
Click on the created bucket (can be found on https://s3.console.aws.amazon.com/s3/home)
Click on the “Permissions” tab
Scroll down to the bottom of the page. In the section with the name “Cross-origin resource sharing (CORS)” and click on the “Edit” button.
Paste in the following statement:
[
{
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"GET",
"PUT",
"POST",
"DELETE"
],
"AllowedOrigins": [
"https://o6lwlm3sld.execute-api.eu-west-1.amazonaws.com",
"https://d5aoblv5p04cg.cloudfront.net"
],
"ExposeHeaders": []
}
]
Click the “Save changes” button
Create own policy
Click on “Create policy”
In the following form select: Service: S3
Actions:
List -> ListBucket
Read -> GetObject
Write -> PutObject, DeleteObject
Permissions management -> PutObjectAcl
Resources:
- Select specific
- For “bucket” click on “Add ARN”. Type Your bucket name from step 1 and click on the “Add” button.
- For object click on “Add ARN”. Type Your bucket name from step 1, in the “object” name field select “Any”. Click on the “Add” button.Click on “Review policy”.
Type policy name.
Click on “Create policy”.
Create AWS user
Click on the “Add user” button
Fill “User name” field -> for example topol-plugin-user
Click on the “Next: Permissions” button in the right bottom corner
In the next step click on “Attach existing policies directly”.
Filter policies via search where you type the name of Your created policy from step 3. (example: topol-plugin)
Select the policy and click the “Next” button in the right bottom corner.
Click the “Next” button in the right bottom corner.
Click the “Create user” button in the right bottom corner.
Create access keys
Click on the newly created user
Select "Security credentials" tab
Scroll to "Access keys"
Click "Create Access key"
Select "Third-party service"
Create access key
Copy "Access key" and "Secret key" (to notes or somewhere)
Click "Done"
Set AWS credentials to API Token in TOPOL
Go to Your Topol Settings
In the left menu select “Plugin”
Find API Token where You want to setup Your own AWS S3 storage. Click on the Storage options. (a dialog will appear)
Click on “AWS S3 BUCKET”
Now You have to fill in Your AWS S3 credentials.