Skip to content

Instantly share code, notes, and snippets.

@haroldcris
Created April 16, 2023 08:58
Show Gist options
  • Save haroldcris/67885d77efee28bfd81aeb09b719b470 to your computer and use it in GitHub Desktop.
Save haroldcris/67885d77efee28bfd81aeb09b719b470 to your computer and use it in GitHub Desktop.
Minio Policy to Allow public download but require access key when uploading
{
"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