Repository navigation
dbx-workspace: give listed account users access to a new AWS workspace - #14
Merged
Merged
Conversation
admin_emails looks up each address as an existing Databricks account user and assigns the workspace role (ADMIN by default). Emails stay in the private variables file and Terraform state, not in the pack records or output. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The service principal that creates a workspace is its only user at first, so people had to add themselves by hand. This adds two AWS options:
--param admin_emails=a@x.com,b@x.com: each address is looked up as an existing Databricks account user and assigned to the workspace withdatabricks_mws_permission_assignment.--param admin_role=ADMIN|USER(defaultADMIN).Nothing changes when
admin_emailsis not set. The run stops at preflight on a bad email or role, and on Azure. Emails go only into the private variables file and Terraform state, not the pack records or output.Tested
terraform testcases (new: none by default, two users with ADMIN, bad email and role refused).terraform fmtclean.admin_emailsis the test.🤖 Generated with Claude Code