AWS Credentials
Kostavo connects to Databricks on AWS using a Databricks service principal. This guide covers the exact setup, from the Databricks account console to a validated credential in Kostavo.
What You Need
| Field | Description |
|---|---|
| Principal ID | The service principal's client ID from the Databricks account console |
| Principal Secret | The OAuth secret generated for the service principal |
Step 1: Create a Service Principal
- Open the Databricks account console and sign in as an account admin
- Go to User management, then the Service principals tab
- Click Add service principal
- Name it (e.g.,
kostavo-monitoring) and create it
Step 2: Generate an OAuth Secret
- Open the service principal you just created
- Under OAuth secrets, click Generate secret
- Copy the Secret value immediately, it is only shown once
- Also copy the Client ID, this is the Principal ID Kostavo needs
Step 3: Grant Workspace Access
The service principal needs admin access to each workspace Kostavo should monitor and manage:
- In the account console, go to Workspaces and open a workspace
- Under Permissions, add the service principal
- Assign the Admin role so Kostavo can read resources and apply Fix and Remove actions
Repeat for every workspace you plan to enroll. Grant only the workspaces you want governed, Kostavo never touches workspaces it cannot see.
Step 4: Add the Credential in Kostavo
In the onboarding wizard or the Credentials page, create a new credential with the cloud provider set to AWS:
| Field | Value |
|---|---|
| Principal ID | Client ID from Step 2 |
| Principal Secret | Secret value from Step 2 |
After saving, the credential appears in the credentials list. AWS credentials are exercised per workspace: enrollment and scans use the workspace URL you provide, so a wrong secret surfaces as scan failures on the workspace rather than as an error at save time.
Workspace Enrollment
Unlike Azure, AWS does not support cloud-level auto-discovery. You have two options in the wizard:
Single workspace: Enter the workspace name and Databricks host URL manually.
Workspace list: Use batch entry to paste multiple workspace entries at once. Each entry needs a name and the workspace URL (e.g., https://workspace-name.cloud.databricks.com).
Workspace URL Format
AWS Databricks workspace URLs follow this pattern:
https://<workspace-name>.cloud.databricks.com
Or for non-default deployments:
https://<workspace-id>.<region>.databricks.com
Secret Rotation
When you rotate the OAuth secret:
- Generate a new secret in the Databricks account console
- Update the credential in Kostavo with the new secret value
- Delete the old secret once scans keep succeeding with the new one
See Managing credentials for the in-app rotation flow.
Related
- Guide: Adding workspaces is the next step once the credential is saved
- Guide: Managing credentials covers editing, rotation, and troubleshooting
- Guide: Azure service principal for the Azure equivalent