Amazon S3

Amazon Cloud Storage

In order to be able to use Amazon S3 storage in Jet, you need to set it up. Follow the steps below to successfully integrate S3 with Jet.

Making a new S3 IAM user

Head over to IAM, add a new user and call it jetadmin-uploader, enable programmatic access only.

Hit next to grant the account permissions. The easiest way is granting full S3 permissions, but if you want, you can further restrict the permissions. You'll need to create a new policy, then attach the policy to the created user.

Configuring Permissions

IAM Permissions: best practices

While the simplest way to get JetAdmin working with S3 is to give JetAdmin full S3 access, the best practice is to restrict access to buckets on an as-needed basis.

Here's an example JSON IAM policy: you'll need to change the YOUR_STATEMENT_ID variable, as well as the YOUR_BUCKET_NAME_HERE variable.

Keep both the YOUR_BUCKET_NAME_HERE/* and YOUR_BUCKET_NAME_HERE - as they're both required.

{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:GetBucketAcl",
"s3:GetBucketCORS",
"s3:GetBucketLocation",
"s3:GetBucketLogging",
"s3:GetBucketNotification",
"s3:GetBucketPolicy",
"s3:GetBucketWebsite",
"s3:GetObject",
"s3:GetObjectAcl",
"s3:GetObjectVersion",
"s3:GetObjectVersionAcl",
"s3:PutObject",
"s3:PutObjectAcl",
"s3:PutObjectTagging",
"s3:PutObjectVersionAcl",
"s3:PutObjectVersionTagging"
],
"Resource": [
"arn:aws:s3:::BUCKET_NAME",
"arn:aws:s3:::BUCKET_NAME/*"
]
}
]
}

Minimum Grants for Uploading Files:

"s3:GetBucketLocation"
"s3:PutObject"

Configuring CORS

Since we upload directly from your browser, you'll need to configure CORS. Open up the S3 bucket, click the Permissions tab, and then click CORS configuration, and paste in the following JSON, which will let JetAdmin upload directly into your S3 bucket from the browser.

[
{
"AllowedOrigins": [
"https://*.jetadmin.io"
],
"AllowedMethods": [
"PUT",
"POST",
"DELETE"
],
"AllowedHeaders": ["*"]
},
{
"AllowedOrigins": ["*"],
"AllowedMethods": ["GET"]
}
]

Integrate S3 with Jet

Select Amazon S3 from the list of available storages and enter the access key and secret generated for your IAM user obtained here. Jet will automatically get a list of all your buckets and integrate each bucket with Jet.

Once you have integrated S3 with Jet, you will see a Storage File Viewer that you'll use to access your data.