Back to blog

Link s3 to enduro

Tuesday, 24 January, 2017

Linking enduro to aws s3 storage enables two features:

  • Uploading images directly to s3 from the admin interface
  • Using juicebox to version and backup site's content

To enable s3 quickly, just use enduro setup s3:

Manual setup

Below is a step-by-step guide on how to enable s3:

First, you have to have a s3 bucket created. Create one if you didn't do so. When you have your s3 bucket ready, just pass it's name to enduro in /enduro.json file along with the region of this bucket:

{
    "project_name": "Your project name",
    "project_slug": "ypn",
    "s3": {
        "bucket": "testbucket",
        "region": "eu-west-1"
    }
}

Add the aws credentials

Be careful not to use the root credentials, but to use iam to create a key pair for use with s3 only. Once you have your key and secret, add it to /enduro_secret.json or as a environment variable:

{
    "secret": {
        "s3": {
            "S3_KEY": "<your_aws_key>",
            "S3_SECRET": "<your_aws_secret_key>"
        }
    }
}

Wow, we are done! Now you can use juicebox, upload images to s3 from admin interface.

Back to blog

Shout out to pexels and freepik