Created
April 16, 2023 08:58
-
-
Save haroldcris/67885d77efee28bfd81aeb09b719b470 to your computer and use it in GitHub Desktop.
Minio Policy to Allow public download but require access key when uploading
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": [ | |
"*" | |
] | |
}, | |
"Action": [ | |
"s3:GetObject" | |
], | |
"Resource": [ | |
"arn:aws:s3:::idms/*" | |
] | |
}, | |
{ | |
"Sid": "RequireSecretToPutObject", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": [ | |
"*" | |
] | |
}, | |
"Action": [ | |
"s3:PutObject" | |
], | |
"Resource": [ | |
"arn:aws:s3:::idms/*" | |
], | |
"Condition": { | |
"Bool": { | |
"aws:SecureTransport": [ | |
"true" | |
] | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment