Linking enduro to aws s3 storage enables two features:
To enable s3 quickly, just use enduro setup s3
:
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"
}
}
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.