Use managed MinIO (S3 object storage)
MinIO S3 endpoint, access keys, mc client, create buckets and policies.
Use managed MinIO (S3)
MinIO is an S3-compatible object store. The endpoint, web console, access key and secret are in the panel.
1. Access
- MinIO web console: URL from the panel (manage buckets in the browser).
- S3 endpoint: for your applications / S3 clients.
2. mc client (command line)
mc alias set onesubnet https://<host> <access_key> <secret_key>
mc ls onesubnet # list buckets
mc mb onesubnet/my-bucket # create a bucket
mc cp file.txt onesubnet/my-bucket/ # upload
mc ls onesubnet/my-bucket # list contents
3. From an application (AWS SDK)
import { S3Client, PutObjectCommand } from "@aws-sdk/client-s3"
const s3 = new S3Client({
endpoint: "https://<host>",
region: "us-east-1",
credentials: { accessKeyId: "<access_key>", secretAccessKey: "<secret>" },
})
await s3.send(new PutObjectCommand({ Bucket: "my-bucket", Key: "file.txt", Body: "data" }))
regioncan stayus-east-1(MinIO ignores it); only theendpointmatters.
4. Make a bucket public (read)
mc anonymous set download onesubnet/my-bucket