Daniël Klabbers edited this page Apr 24, 2017 · 1 revision

Install necessary package

composer require league/flysystem-aws-s3-v3

This will install a required package needed for uploading your files into S3.

Enable public readable buckets

Use the following bucket policy.

{
    "Version": "2008-10-17",
    "Statement": [
        {
            "Sid": "AllowPublicRead",
            "Effect": "Allow",
            "Principal": {
                "AWS": "*"
            },
            "Action": [
                "s3:GetObject"
            ],
            "Resource": [
                "arn:aws:s3:::bucket/*"
            ]
        }
    ]
}

Replace bucket with your bucket name.

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.