Configuration of an AWS S3 bucket
Step 1: Log in to AWS web console.
Step 2: Open S3 service
![](../__attachments/1422000129/image-20210106-202240.png?inst-v=fc7a1bd4-712b-468f-b1ee-914d3e939373)
Step 3: VXG Server requires 2 buckets (first for records and images and the second for logs). Click on the ''Create bucket'' button.
Give it some name, for example, vxg-server-logs – it will be the bucket for logs. Select a region where buckets should be created (for example 'us-east-N. Virginia'). Then click "Next" 3 times and “Create bucket”.
![](../__attachments/1422000129/image-20210106-202302.png?inst-v=fc7a1bd4-712b-468f-b1ee-914d3e939373)
Step 4: Create another bucket for images and records in the same way, for example, vxg-server
![](../__attachments/1422000129/image-20210106-202313.png?inst-v=fc7a1bd4-712b-468f-b1ee-914d3e939373)
In the “Set Properties” menu click “Server access logging” then click “Enable logging” and type at the “target bucket” field your previous bucket, in our case, it was vxg-server-logs. Click “Save”.
![](../__attachments/1422000129/image-20210106-202327.png?inst-v=fc7a1bd4-712b-468f-b1ee-914d3e939373)
Then click "Next" two times and “Create bucket”.
Step 5: Open IAM service
![](../__attachments/1422000129/image-20210106-202343.png?inst-v=fc7a1bd4-712b-468f-b1ee-914d3e939373)
Step 6: To create a special user for access to these buckets click at “Users” and then “Add user” buttons.
![](../__attachments/1422000129/image-20210106-202407.png?inst-v=fc7a1bd4-712b-468f-b1ee-914d3e939373)
Give it some name, for example, vxg-server-user, select Access type - Programmatic Access and then click “Next: Permissions”
![](../__attachments/1422000129/image-20210106-202425.png?inst-v=fc7a1bd4-712b-468f-b1ee-914d3e939373)
Step 7: Set permissions “Attach existing policies directly” -> Create Policy
![](../__attachments/1422000129/image-20210106-202444.png?inst-v=fc7a1bd4-712b-468f-b1ee-914d3e939373)
In the new opened window choose "JSON" and paste the text below, but with your bucket names.
![](../__attachments/1422000129/image-20210106-202514.png?inst-v=fc7a1bd4-712b-468f-b1ee-914d3e939373)
In our case it will be:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObject",
"s3:DeleteObject"
],
"Resource": [
"arn:aws:s3:::vxg-server/*",
"arn:aws:s3:::vxg-server-logs/vxg-server/*"
]
},
{
"Effect": "Allow",
"Action": "s3:ListBucket",
"Resource": [
"arn:aws:s3:::vxg-server",
"arn:aws:s3:::vxg-server-logs"
]
}
]
}
Click on “Review Policy” then give it some name, for example: “Policy” and click the “Create Policy” button.
Step 8: Then go to the previous window, click “Refresh” then find your Policy type at search field, click “ok” in front of it and click “Next: Review”
![](../__attachments/1422000129/image-20210106-202535.png?inst-v=fc7a1bd4-712b-468f-b1ee-914d3e939373)
Step 9: Click “Create user”
![](../__attachments/1422000129/image-20210106-202559.png?inst-v=fc7a1bd4-712b-468f-b1ee-914d3e939373)
Step 10: Save in the text file the pair of access keys (aws_access_key_id / aws_secret_access_key). They will be used for access to S3 in your VXG Server settings.
![](../__attachments/1422000129/image-20210106-202616.png?inst-v=fc7a1bd4-712b-468f-b1ee-914d3e939373)
Step 11: Go to your VXG Server web-page click “Settings” in the menu and fill-in 5 fields of “AWS Storage” and click “Update”
![](../__attachments/1422000129/image-20210106-202638.png?inst-v=fc7a1bd4-712b-468f-b1ee-914d3e939373)
You can take the information about your Buckets Region on the AWS S3 Web console. Just take a look at the Region column near the buckets you've just created.
Then you need to get a shortened region name here. You need to select ''Region'' according to your “Region name”. For example in our case: for US East (N. Virginia) it is us-east-1
![](../__attachments/1422000129/image-20210106-202717.png?inst-v=fc7a1bd4-712b-468f-b1ee-914d3e939373)