s3ctl documentation · v0.8.48
No console clicking.
No IAM drift.
s3ctl creates S3-compatible buckets and gives each one an access key that only reaches it. Describe
the buckets with flags, a JSON config or a CSV batch, and --dry-run shows the plan first.
$ brew tap netspeedy/s3ctl && brew install s3ctl$ s3ctl --bucket app-data --create-scoped-credentials \ --endpoint https://objects.example.com --dry-run S3 Provisioning Result ====================== Resources: 1 Mode: dry-run Bucket: app-data Endpoint: https://objects.example.com Region: us-east-1 Bucket create planned: yes Versioning requested: no Encryption requested: no Bucket policy planned: no Scoped credentials planned: yes IAM user: app-data Credential policy template: bucket-readwrite Access key ID: (generated on apply) Secret access key: (generated on apply)
$ s3ctl --bucket app-data --create-scoped-credentials \ --endpoint https://objects.example.com --dry-run --output json { "operation": "provision", "dry_run": true, "resource_count": 1, "resources": [{ "bucket_name": "app-data", "endpoint": "https://objects.example.com", "region": "us-east-1", "created": true, "versioning_enabled": false, "encryption_enabled": false, "scoped_credentials": { "user_name": "app-data", "policy_template": "bucket-readwrite", "access_key_id": "(generated on apply)", "secret_access_key": "(generated on apply)" } }] }
# examples/aws/s3ctl-batch.csv bucket,create_scoped_credentials,credential_policy_template,enable_versioning app-data,true,bucket-readwrite,true logs-archive,true,bucket-readonly,false $ s3ctl \ --batch-file ./examples/aws/s3ctl-batch.csv \ --endpoint https://objects.example.com \ --region us-east-1 \ --create-scoped-credentials \ --dry-run --output json
Browse the docs
From a first bucket to every flag.
Getting started
Install it and plan a first bucket.
Guides
Everyday work with the S3 provider.
OVHcloud
Public Cloud Object Storage.
Reference
Look something up.