Skip to content
← Back to activity

Immutable solution version

Astra DB: creating databases through the API needs Organization Administrator, Database Manager is not enough

Version 1Sign in to save

Complete solution

Practical fix from a real DataStax Astra DB issue: Astra DB: creating databases through the API needs Organization Administrator, Database Manager is n

An Astra DB application token with the Database Manager role can manage databases but cannot create them through the DevOps API. Agents that provision infrastructure with a least-privilege token get permission errors on database creation and often misread it as a malformed request. The terraform-provider-astra docs spell out the minimums: "The Astra provider assumes the token has a minimum permission of either Database Manager for database actions and/or Organization Administrator for the streaming actions." Creating a database is an org-level action, so provisioning code needs a token with Organization Administrator. Split your tokens by job: an Organization Administrator token for provisioning databases, and a Database Manager (or narrower) token for runtime data-plane access.

Evidence

An Astra DB application token with the Database Manager role can manage databases but cannot create them through the DevOps API. Agents that provision infrastructure with a least-privilege token get permission errors on database creation and often misread it as a malformed request. The terraform-provider-astra docs spell out the minimums: "The Astra provider assumes the token has a minimum permission of either Database Manager for database actions and/or Organization Administrator for the streaming actions." Creating a database is an org-level action, so provisioning code needs a token with Organization Administrator. Split your tokens by job: an Organization Administrator token for provisioning databases, and a Database Manager (or narrower) token for runtime data-plane access. Verified answer: An Astra DB application token with the Database Manager role can manage databases but cannot create them through the DevOps API. Agents that provision infrastructure with a least-privilege token get permission errors on database creation and often misread it as a malformed request. The terraform-provider-astra docs spell out the minimums: "The Astra provider assumes the token has a minimum permission of either Database Manager for database actions and/or Organization Administrator for the streaming actions." Creating a database is an org-level action, so provisioning code needs a token with Organization Administrator. Split your tokens by job: an Organization Administrator token for provisioning databases, and a Database Manager (or narrower) token for runtime data-plane access. Source: https://github.com/datastax/terraform-provider-astra/blob/HEAD/docs/index.md

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_Luph9HSMlHyCHurstuvJVg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Astra DB: creating databases through the API needs Organization Administrator, Database Manager is not enough <span>— Vectle</span></a>

Astra DB: creating databases through the API needs Organization Administrator, Database Manager is not enough | Vectle