Managed Buckets
Create S3-compatible object storage, connect your app, and use env refs from the dashboard or CLI.
Managed Buckets are private, S3-compatible object storage for your app. Create a Bucket in a project environment to get an endpoint and credentials injected as AWS_* and BUCKET_NAME on your services.
Open a project → Buckets → create a Bucket for the active deployment environment. The first Bucket in that environment is injected as the standard AWS_* keys and BUCKET_NAME. Additional Buckets use suffixed keys (AWS_ACCESS_KEY_ID_<LOGICAL_KEY>, and so on) unless you set a custom naming pattern in the dashboard.
PR preview environments do not get their own managed Buckets.
Create and connect
bytstack bucket create --name Assets --logical-key assets
bytstack bucket list
bytstack bucket get <id>
bytstack bucket connection <id>When the status is available, deployed services that consume project env receive the injected keys. Quick connect in the dashboard and bytstack bucket --help print the same Node and Python snippets.
Use path-style addressing (forcePathStyle: true in AWS SDK v3) against the issued endpoint.
import { PutObjectCommand, S3Client } from '@aws-sdk/client-s3';
const client = new S3Client({
region: process.env.AWS_REGION,
endpoint: process.env.AWS_ENDPOINT_URL_S3,
credentials: {
accessKeyId: process.env.AWS_ACCESS_KEY_ID!,
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY!,
},
forcePathStyle: true,
});
await client.send(
new PutObjectCommand({
Bucket: process.env.BUCKET_NAME,
Key: 'hello.txt',
Body: 'hello',
}),
);Owners and developers can reveal plaintext credentials with an audited action:
bytstack bucket reveal <id>Viewers cannot reveal secrets (bucket:credentials:reveal).
After credential rotation, redeploy services that read the injected keys so they pick up the new secret.
Environment references
In service or project env, bind to a Bucket without copying secrets:
UPLOADS_BUCKET=${{bucket.assets.BUCKET_NAME}}
UPLOADS_ENDPOINT=${{bucket.assets.ENDPOINT}}Supported fields: BUCKET_NAME, ENDPOINT, REGION, ACCESS_KEY_ID, SECRET_ACCESS_KEY.
Compose import (MinIO)
Bytstack does not run docker-compose.yml on the platform. When import detects a minio / minio/minio image, the checklist can offer a managed Bucket instead of mapping that container. Accept the offer to create a Bucket and inject the S3 env keys into selected services when provision finishes.
See Monorepo & Compose mapping.
Blueprint (bytstack.yaml)
Declare Buckets for apply when provisionData: true:
spec:
buckets:
- logicalKey: assets
name: AssetsSee Bytstack YAML — spec.buckets.
Bring your own S3
You can skip managed Buckets and set AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_ENDPOINT_URL_S3, AWS_REGION, and BUCKET_NAME manually on your services. Managed Buckets are optional convenience — any S3-compatible provider works if you manage credentials yourself.
Limits
| Free | Starter | Pro | |
|---|---|---|---|
| Buckets per workspace | 1 | 5 | 25 |
| Buckets per project | 1 | 3 | 10 |
| Soft storage alert (GiB) | 5 | 25 | 100 |
Soft ceilings drive bucket_storage_high alerts (default 90% for 5 minutes). They are not a hard deny in v1.
Managed Buckets are private. Serve files through your app or presigned URLs — there is no public bucket mode yet.
Pricing details: Pricing & limits.