Amazon Simple Storage Service is storage for the Internet. It is designed to make web-scale computing easier for developers.
Amazon S3 has a simple web services interface that you can use 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, fast, inexpensive data storage infrastructure that Amazon uses to run its own global network of web sites.
Create Bucket on Amazon S3
Step 1
The first step is to log in to Amazon S3 console page and navigate to spaces and click on Create bucket as shown in the screenshot.
Step 2
Next chose a name and region for your bucket
Step 3
Make sure to tick Block all public access on the Set Permissions step
Step 4
Click on the newly created bucket and from the URL of your browser copy the region parameter. For example, if I created the bucket in Frankfurt, the region is eu-central-1.
Step 5
From the Services tab, go to IAM (Identity and Access Management) page
Step 6
Click Policies under Access Management and Create policy
Step 7
Choose the JSON tab and paste the following policy ( make sure to replace BUCKET_NAME with the name of the bucket created previously
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"s3:GetAccessPoint",
"s3:PutAccountPublicAccessBlock",
"s3:GetAccountPublicAccessBlock",
"s3:ListAllMyBuckets",
"s3:ListAccessPoints",
"s3:ListJobs",
"s3:CreateJob",
"s3:HeadBucket",
"s3:ListBucket"
],
"Resource": "*"
},
{
"Sid": "VisualEditor1",
"Effect": "Allow",
"Action": "s3:*",
"Resource": [
"arn:aws:s3:::BUCKET_NAME",
"arn:aws:s3:::BUCKET_NAME/*"
]
}
]
}
This policy will allow the user to write and read in our bucket only.
Step 8
From IAM > Users create a user with the name of your choosing that has Programmatic access enabled.
When setting the permissions choose to attach existing policy and search for the policy you created.
Finish the creation and get the access key and the secret key
Step 9
-
Login to your Bunnyshell account.
-
Select the Organization for which you want to enable backups on Amazon S3 from the bottom left of the page.
-
Navigate to Integrations and select the Backup Providers tab.
-
On the Amazon S3 line please click on Connect.
-
Use the information from the previous steps to establish the connection:
-
Name: enter the name for this connection (you can chose anything).
-
Access key id: enter the Access key ID generated in Step 8.
-
Secret key access: enter the Secret access key generated in Step 8.
-
Bucket name: enter the name of the bucket unique name generated in Step 2.
-
Location: In Step 4 the location is emphasized (eu-central-1 in our example).
6. Click on Connect