Skip to content

Instantly share code, notes, and snippets.

@BashirShallah
Created September 5, 2020 11:10
Show Gist options
  • Save BashirShallah/c39b16fc4b98a02732d60df19c28f405 to your computer and use it in GitHub Desktop.
Save BashirShallah/c39b16fc4b98a02732d60df19c28f405 to your computer and use it in GitHub Desktop.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"s3:ListBucket",
"s3:GetBucketLocation"
],
"Resource": "arn:aws:s3:::BUCKET_NAME"
},
{
"Sid": "VisualEditor1",
"Effect": "Allow",
"Action": [
"s3:PutObject*",
"s3:GetObject",
"s3:DeleteObject"
],
"Resource": "arn:aws:s3:::BUCKET_NAME/*"
},
{
"Sid": "VisualEditor2",
"Effect": "Allow",
"Action": "s3:ListAllMyBuckets",
"Resource": "*"
},
{
"Sid": "AllowPublicAccessToBucket",
"Effect": "Allow",
"Action": "s3:GetObject",
"Resource": [
"arn:aws:s3:::BUCKET_NAME/*"
]
}
]
}
@yousefatwork
Copy link

yousefatwork commented May 18, 2021

انا استخدم هذه البوليسي هل فيها خطوره ؟

{
    "Version": "2012-10-17",
    "Statement": [
    {
        "Effect": "Allow",
        "Action": "*",
        "Resource": [
            "arn:aws:s3:::your-bucket-name",
            "arn:aws:s3:::your-bucket-name/*"
         ],
         "Condition": {}
     } 
     ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment