TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Terrareg: An open-source Terraform module registry

2 pointsby mrmattyboyabout 3 years ago

2 comments

throwaway787544about 3 years ago
I just thought &quot;hmm wouldn&#x27;t it be cool to host an alternative module registry&quot;, and then I thought &quot;hmm but what if it got popular, could be expensive&quot;. And <i>then</i> I thought, &quot;What if we made open source hosted services that are <i>literally</i> powered by donations?&quot;<p>You could write a web service that uses metrics to calculate its bills and check a donation account balance, and when the service gets low on funds it would throttle connections, and when funding runs out, service cuts off completely. If a person or company wants it back on, they just donate. A fuel gauge would show when the tank&#x27;s getting empty, and the &quot;average range&quot; based on current funds.<p>You could actually make this a web proxy, too, and put it in front of <i>any</i> web service. I&#x27;d call it DSaaS
评论 #31314023 未加载
mrmattyboyabout 3 years ago
Hey all, this project is still fairly early on work-in-progress project, but was built to try to provide:<p>* A simple private Terraform module registry, with some basic search functionality.<p>* Provide analytics for providing information of &#x27;who&#x27; is using which module, including which version of terraform they are using, which version of the module they&#x27;re using and to which &#x27;environment&#x27; they had to deployed to it (i.e. has it just been deployed to a development environment, or in use in a production environment). This makes use of manipulating the &#x27;namespace&#x27; of the module (used to identify the calling module) and static terraform authentication keys for identifying the environment that the terraform has been run in.) (<a href="https:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;uLRH2oU" rel="nofollow">https:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;uLRH2oU</a>)<p>* Usage builder (currently fairly rudimentary), but provides a some-what interactive table of required variables, which can manipulate the generated terraform. (<a href="https:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;v8q61uY" rel="nofollow">https:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;v8q61uY</a>)<p>* Pulling terraform modules from git sources and indexing them or uploading zipped modules. An additional API to &#x27;publish&#x27; a given version of module can be used (e.g. if an SCM tag hook is setup to automatically index a version and a CI job to &#x27;publish&#x27; it once any tests have passed). A &#x27;git provider&#x27; can be configured, which determines how the URLs for cloning repositories are generated for a given module.