GuidesBatch provisioning
Batch provisioning
Plan and create many buckets in one run, from repeated flags or a CSV file, with a scoped key for each.
Applies to v0.8.38stable, released 4 November 2026Release notes →
For a bulk run the pattern is:
- Set the shared provider settings once, with flags or a config file.
- Name the buckets with repeated
--bucketflags or a CSV file in--batch-file. - Let s3ctl create one scoped user and one access key per bucket.
Repeated flags
Section titled “Repeated flags”s3ctl \ --bucket app-data \ --bucket logs-archive \ --create-scoped-credentials \ --dry-run \ --output jsonA CSV file
Section titled “A CSV file”bucket,create_scoped_credentials,credential_policy_template,enable_versioningapp-data,true,bucket-readwrite,truelogs-archive,true,bucket-readonly,falses3ctl \ --batch-file ./examples/aws/s3ctl-batch.csv \ --endpoint https://objects.example.com \ --region us-east-1 \ --create-scoped-credentials \ --dry-run \ --output jsonEach row starts from the shared settings, and a value in any other column overrides them for that
row. Blank lines and lines that start with # are skipped. A relative bucket_policy_file resolves
from the CSV file’s directory.
Columns
Section titled “Columns”Only bucket is required. Headers are case-insensitive, and spaces or hyphens in them count as
underscores.
| Column | Also accepted | Value |
|---|---|---|
bucket | bucket_name, name | The bucket name. |
iam_user_name | iam_user, user_name | The scoped user’s name, instead of one derived from the bucket. |
enable_versioning | versioning | true or false. |
bucket_policy_file | Path to a JSON bucket policy document. Replaces any template. | |
bucket_policy_template | A bucket policy template. Replaces any file. | |
create_scoped_credentials | create_credentials, create_iam_user | true or false. |
credential_policy_template | iam_policy_template | A credential policy template. |
A row that names an unknown template, or a value that isn’t a boolean where one is expected, stops the run before anything is created and names the line.