ucx icon indicating copy to clipboard operation
ucx copied to clipboard

[FEATURE]: Generate Terraform scripts from assessment - mapping state

Open pohlposition opened this issue 1 year ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Problem statement

Some customers use Terraform to manage the access control to all of their Databricks assets. They consider these configuration files as the system-of-record for access control. As such, they do not want UCX to alter the access control of objects (tables, notebooks, etc.), but rather have UCX generate the Terraform scripts themselves, which they can then modify, version control, and run themselves.

Proposed Solution

This could be a new ucx command that generates the .tf scripts from the assessment + object mapping, but open to other suggestions.

Additional Context

No response

pohlposition avatar Apr 26 '24 21:04 pohlposition

This would involve migrating tf code via AST and has to be written in GoLang, as only there we have libraries for HCL parsing and transformation.

nfx avatar Apr 30 '24 08:04 nfx