Storage guide

Connect an Amazon S3 bucket

Connect an S3 bucket with an IAM user that can reach only that bucket. The policy below allows exactly what we need to list, read, write and delete files there, and nothing else in your AWS account.

Before you start

  • An AWS account, and permission to create IAM users and policies.

Step by step

  1. In the Amazon S3 console, create a bucket, or use one you have, in the AWS Region closest to where your app runs. Leave public access blocked.
  2. In the IAM console, go to Users and create a user for CoreHost, for example corehost-storage. It does not need access to the AWS Management Console.
  3. Open the user, go to the Permissions tab, choose Add permissions and then Create inline policy. Choose the JSON editor, paste the policy below, replace your-bucket-name with your bucket name in both places, and save it with a name such as corehost-one-bucket.
    {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Sid": "CoreHostListBucket",
          "Effect": "Allow",
          "Action": [
            "s3:ListBucket",
            "s3:ListBucketMultipartUploads"
          ],
          "Resource": "arn:aws:s3:::your-bucket-name"
        },
        {
          "Sid": "CoreHostReadWriteObjects",
          "Effect": "Allow",
          "Action": [
            "s3:GetObject",
            "s3:PutObject",
            "s3:DeleteObject",
            "s3:AbortMultipartUpload",
            "s3:ListMultipartUploadParts"
          ],
          "Resource": "arn:aws:s3:::your-bucket-name/*"
        }
      ]
    }
  4. On the user's Security credentials tab, in the Access keys section, choose Create access key. AWS shows best practices and alternatives first: choose Other, then Next, then Create access key.
  5. Copy the Access key ID and the Secret access key, or download the .csv file. AWS shows the secret only once.
  6. In the CoreHost control panel, go to Your storage and add a connection. Choose Amazon S3, fill in the fields as shown below and save.
  7. We save the connection and test it straight away. The result is one sentence, for example "Connected. 4 folders found. We can write here." If something is wrong, it says what, such as a key that was refused or a bucket that was not found.
  8. Open the app that should use the storage, go to its Storage section and attach the connection. Pick the folder in your storage, the path in the app (/mnt/storage unless the app needs another) and Read only if the app only needs to read. The folder appears in the running app within about 15 seconds, without a restart.

What to fill in

In Your storage, add a connection, choose Amazon S3 and fill in these fields.

Name
Any name you like, for example S3 media
Region
The bucket Region code, for example eu-central-1 or ap-southeast-2
Bucket
The bucket name
Access key ID
The Access key ID of the IAM user
Secret access key (kept encrypted, never shown again)
The Secret access key of the IAM user
Folder (optional)
Leave it empty to use the whole bucket. You pick the folder for each app when you attach it.
Cache size (optional)
2, 5, 10 or 20 GiB. The default suits most apps. Pick a larger size for a media library that plays the same files again.
Read only (optional)
Tick it if the key or account can only read, so the test does not try to write

After you save, we never show a secret again: the panel shows only its last four characters. To change one, enter the new value. A secret you leave empty when you edit the connection keeps the stored one.

Good to know

  • The policy cannot create buckets or change bucket settings, so connect a bucket that already exists.
  • For a read-only connection, keep only s3:ListBucket and s3:GetObject in the policy, and tick Read only when you add the connection.
  • AWS recommends temporary credentials over long-term access keys where it can. A storage connection needs a long-term key, which is why this one is limited to one bucket. You can deactivate or delete it in IAM at any time.

What your provider charges

AWS charges for data transferred out to the internet and for requests. Files your app reads count as data transfer out. AWS includes 100 GB of free data transfer out per month across your account; the Amazon S3 pricing page has current prices.

Backups

Connected storage is not part of CoreHost backups, which cover the app's own data only. Back up what is in your storage with your provider. Detaching a folder or removing a connection never deletes anything in your storage. How connected storage works.

Using the folder in your app

The folder appears at /mnt/storage unless you chose another path. Point the app at it, or at a folder inside it, for example a music or audiobook library. The overview has tips for media apps and explains the cache and what happens if your storage cannot be reached.

Sources

  1. AWS Docs, Create an IAM user: IAM users without console access
  2. AWS Docs, Adding and removing IAM identity permissions: Add permissions, Create inline policy, the JSON editor
  3. AWS Docs, Manage IAM user access keys: Create access key, the Other use case, the secret shown once
  4. Amazon S3 pricing: data transfer out and request charges

We checked these steps against the provider's own documentation on 2 December 2026. Consoles change, so if something here is out of date, email support@corehost.io and we will correct it. Amazon Web Services is an independent company. CoreHost is not affiliated with Amazon Web Services, and this page is not endorsed by it.

Put your library to work

Every new account starts with $5 of credit, no card needed. Deploy an app such as Navidrome or Audiobookshelf, then connect your storage from the control panel.

Browse the apps