Skip to content

Instantly share code, notes, and snippets.

@fians
Created February 5, 2018 05:13
Show Gist options
  • Save fians/c8d73faf3130485d088d938ce4378232 to your computer and use it in GitHub Desktop.
Save fians/c8d73faf3130485d088d938ce4378232 to your computer and use it in GitHub Desktop.
AWS IAM Policy for flysystem-adapter-s3-v3

AWS IAM Policy for flysystem-adapter-s3-v3

You can copy AWS IAM policy below to secure the access of your AWS S3 bucket when using S3 Adapter of Flysystem

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "s3:GetObject",
                "s3:GetObjectAcl",
                "s3:PutObject",
                "s3:DeleteObject",
                "s3:PutObjectAcl"
            ],
            "Resource": "arn:aws:s3:::your-bucket-name/*"
        },
        {
            "Effect": "Allow",
            "Action": "s3:ListObjects",
            "Resource": "*"
        }
    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment