envrcconfig is a generator that’s intended to be a companion to the
envconfig library in support of the direnv program. Since the direnv
library uses .envrc files by default, the project’s name is a portmanto
of these two words.
Tenet three of the states that applications should "Store config in the
environment". The envconfig library is a great way for Go applications
to build a configuration in the form of a "spec" struct. There are many
common ways to to actually build the environment for the applications -
this project generates sample files in support of those formats. The
following formats are supported:
-
❏
.envfiles (used by Docker Compose and others) -
❏
.envrcfiles (used bydirenv) -
❏ Terraform HCL to configure AWS SSM
-
❏ Kubernetes manifests for
ConfigMapandSecret