MatthewJohn / terrareg

Open source Terraform module registry with UI, optional Git integration and deep analysis
https://gitlab.dockstudios.co.uk/pub/terrareg
GNU General Public License v3.0
268 stars 20 forks source link

Feature req: Specify modules / namespaces as code #35

Closed bmaximuml closed 7 months ago

bmaximuml commented 7 months ago

I have terrareg deployed in multiplie environments. It would be nice to be able to specify modules and namespaces to create (if they don't exist) in a configuration file (JSON/YAML maybe?) which I could then load in. This owuld allow me to define the modules in one place and then easily copy them between environments. It also effectively self documents which modules are present, and how to add new ones

MatthewJohn commented 7 months ago

Hey @bmaximuml

Is this purely namespaces and modules? (as opposed to module versions?)

If so, as part of #32 , I created a Terraform provider for Terrareg (https://registry.terraform.io/providers/dockstudios/terrareg and https://github.com/DockStudios/terraform-provider-terrareg) - I'm not sure if this would solve your use-case (though Terraform would need running, rather than dynamically loading them from a config file on startup)

Thanks Matt

bmaximuml commented 7 months ago

Oh wow this is even better than what I had in mind! I'll try this out today

MatthewJohn commented 6 months ago

Created gitlab issue: https://gitlab.dockstudios.co.uk/pub/terrareg/-/issues/509 gitlab-issue-id:509