ankra bucket creates an object storage bucket in your own cloud account, on one of the organisation’s provider credentials. Ankra creates the bucket, verifies it and keeps its access keys in its secret store. The keys are never printed, and no read returns them.
A bucket here is storage on its own. When the bucket is for cluster backups, create a backup vault instead: a vault is a bucket with restore points and protection schedules on top.
Before you start
- A credential Ankra can create buckets with: Hetzner, Scaleway, DigitalOcean or UpCloud. Other credential kinds cannot provision a bucket yet.
credentials.writeto create a bucket, andcredentials.deleteto delete one. Listing and reading need onlycredentials.read.- For Hetzner, an Object Storage key pair. Hetzner’s Cloud API cannot mint Object Storage keys, so neither can Ankra. Create the pair in the Hetzner Cloud Console under Object Storage → Manage credentials.
1. Create the bucket
--bucket to choose the provider-side name yourself:
--secret-access-key exists for automation; a value passed that way is recorded wherever the command line is.
Ankra refuses a provider-side name that already exists, whether it is your own bucket or one another bucket in Ankra uses. It only ever holds a bucket it created.
2. Follow it to ready
Without--wait the command returns as soon as the platform accepts the request. The bucket shows provisioning until Ankra has created and verified it, then ready, or error with an excerpt of what the provider refused:
get shows the provider, region, provider-side bucket name, endpoint, whether it is path-style, and its status. With --wait, the command blocks until the bucket is ready or fails, for up to --timeout (25 minutes by default).
3. Share it, or keep it to one project
A bucket is a shared kind: it is either in one project or organisation-wide. Move it with:4. Delete it
There are two different deletes, and the default keeps your data.- Without a flag, Ankra forgets the bucket and drops the access keys it held. The bucket and every object in it stay in your cloud account.
- With
--destroy-provider-resources, Ankra also empties and deletes the bucket and removes what it created for it, such as the UpCloud object storage service or the DigitalOcean Spaces key. Everything in the bucket is gone for good. Ankra only empties a bucket it recorded creating; any other bucket it keeps and says so.
Terraform and Ankra’s AI
ankra_object_storage_bucket manages a bucket from Terraform, and ankra_object_storage_buckets lists them. The plan refuses a change that would replace a bucket while destroy_provider_resources = true, because the replacement would delete its data. See Terraform.
Ankra’s AI and the MCP server use list_object_storage_buckets, get_object_storage_bucket, create_object_storage_bucket and delete_object_storage_bucket, with the same permissions.
Troubleshooting
Related
- Backups - buckets with restore points and schedules.
ankra bucketreference- Credentials