Skip to content

Instantly share code, notes, and snippets.

@fabidick22
Created December 10, 2021 04:20
Show Gist options
  • Save fabidick22/18707ddf03847f15ccd608161361d660 to your computer and use it in GitHub Desktop.
Save fabidick22/18707ddf03847f15ccd608161361d660 to your computer and use it in GitHub Desktop.
Configure minIO with s3 as gateway (IAM role)
MINIO_PORT=9000
MINIO_BUCKET_NAME=aws-bucket-name
MINIO_REGION=us-east-1
#Custom user and password
MINIO_ROOT_USER=mySuperUser
MINIO_ROOT_PASSWORD=mySuperPasswd123!
FILESYSTEM_DEFAULT=minio
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:GetBucketLocation"
],
"Resource": [
"arn:aws:s3:::aws-bucket-name"
]
},
{
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObject",
"s3:ListBucket",
"s3:DeleteObject",
"s3:HeadBucket"
],
"Resource": [
"arn:aws:s3:::bibix-backend-filesystem-prod",
"arn:aws:s3:::bibix-backend-filesystem-prod/*"
]
}
]
}
# Be sure to use this url (https://s3.amazonaws.com). If you use this url (https://s3.us-east-2.amazonaws.com) you will probably have problems
# More details: https://github.com/minio/minio/issues/13668
CMD ["gateway","s3","https://s3.amazonaws.com"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment