terraform-databricks-examples icon indicating copy to clipboard operation
terraform-databricks-examples copied to clipboard

Create separate modules for hub/spoke networks in Hub/Spoke examples

Open alexott opened this issue 2 years ago • 1 comments
trafficstars

Right now, modules like adb-exfiltration-protection, aws-exfiltration-protection, and others contain everything - both hub and spoke environments + workspaces definition. It's not very modular, so you can't deploy additional spokes, or additional workspaces into the existing spokes.

It would be really useful to create separate modules, to implement something like shown on the picture below:

  • Hub module - VNet/VPC, Firewall, ...
  • Spoke module - VNet/VPC, shared resources, like, subnets for private links, etc.
  • Workspace module for deployment into a specified spoke

Terraform diagrams

And maybe extend it to UC and account-level resources as well:

Terraform diagrams with UC

alexott avatar Oct 19 '23 06:10 alexott

Here is the possible implementation: https://github.com/alexott/terraform-playground/tree/main/azure-hub-spokes-multiple-ws

alexott avatar Nov 17 '24 12:11 alexott