{"id":23536217,"url":"https://github.com/germanbrew/terraform-provider-dotenv","last_synced_at":"2025-10-15T08:45:08.264Z","repository":{"id":243942641,"uuid":"813683905","full_name":"germanbrew/terraform-provider-dotenv","owner":"germanbrew","description":"A utility Terraform provider for .env files","archived":false,"fork":false,"pushed_at":"2025-04-13T02:08:05.000Z","size":352,"stargazers_count":5,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-23T08:58:48.335Z","etag":null,"topics":["dotenv","env","terraform","terraform-provider","utility"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/providers/germanbrew/dotenv/latest","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/germanbrew.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-11T14:42:57.000Z","updated_at":"2025-04-02T03:13:13.000Z","dependencies_parsed_at":"2024-06-14T15:08:26.125Z","dependency_job_id":"59a735ea-ccf2-40e4-9845-19c19a90a6ba","html_url":"https://github.com/germanbrew/terraform-provider-dotenv","commit_stats":null,"previous_names":["germanbrew/terraform-provider-dotenv"],"tags_count":12,"template":false,"template_full_name":"hashicorp/terraform-provider-scaffolding-framework","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/germanbrew%2Fterraform-provider-dotenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/germanbrew%2Fterraform-provider-dotenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/germanbrew%2Fterraform-provider-dotenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/germanbrew%2Fterraform-provider-dotenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/germanbrew","download_url":"https://codeload.github.com/germanbrew/terraform-provider-dotenv/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250403832,"owners_count":21424794,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dotenv","env","terraform","terraform-provider","utility"],"created_at":"2024-12-26T02:17:37.416Z","updated_at":"2025-10-15T08:45:08.245Z","avatar_url":"https://github.com/germanbrew.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform Provider DotEnv\n\n[![Terraform](https://img.shields.io/badge/Terraform-844FBA.svg?style=for-the-badge\u0026logo=Terraform\u0026logoColor=white)](https://registry.terraform.io/providers/germanbrew/dotenv/latest)\n[![OpenTofu](https://img.shields.io/badge/OpenTofu-FFDA18.svg?style=for-the-badge\u0026logo=OpenTofu\u0026logoColor=black)](https://search.opentofu.org/provider/germanbrew/dotenv/latest)\n[![GitHub Release](https://img.shields.io/github/v/release/germanbrew/terraform-provider-dotenv?sort=date\u0026display_name=release\u0026style=for-the-badge\u0026logo=github\u0026link=https%3A%2F%2Fgithub.com%2Fgermanbrew%2Fterraform-provider-dotenv%2Freleases%2Flatest)](https://github.com/germanbrew/terraform-provider-dotenv/releases/latest)\n[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/germanbrew/terraform-provider-dotenv/test.yaml?branch=main\u0026style=for-the-badge\u0026logo=github\u0026label=Tests\u0026link=https%3A%2F%2Fgithub.com%2Fgermanbrew%2Fterraform-provider-dotenv%2Factions%2Fworkflows%2Ftest.yaml)](https://github.com/germanbrew/terraform-provider-dotenv/actions/workflows/test.yaml)\n\nA utility Terraform provider for .env files\n\n## Requirements\n\n- [Terraform](https://developer.hashicorp.com/terraform/downloads) \u003e= 1.0\n\n## Installing and Using this Plugin\n\nYou most likely want to download the provider from [Terraform Registry](https://registry.terraform.io/providers/germanbrew/dotenv/latest/docs).\nThe provider is also published in the [OpenTofu Registry](https://github.com/opentofu/registry/tree/main/providers/g/germanbrew).\n\nUsing Provider from Terraform Registry (TF \u003e= 1.0)\nThis provider is published and available there. If you want to use it, just add the following to your terraform.tf:\n\n```terraform\nterraform {\n  required_providers {\n  dotenv = {\n    source = \"germanbrew/dotenv\"\n      version = \"1.0.0\"  # Adjust to latest version\n    }\n  }\n  required_version = \"\u003e= 1.0\"\n}\n```\n\nThen run terraform init to download the provider.\n\nThe provider documentation can be found in the [Terraform registry](https://registry.terraform.io/providers/germanbrew/dotenv/latest/docs).\n\n## Development\n\n### Requirements\n\n- [Go](https://golang.org/) \u003e 1.22 (to build the provider plugin)\n- [golangci-lint](https://github.com/golangci/golangci-lint) (to lint code)\n- [terraform-plugin-docs](https://github.com/hashicorp/terraform-plugin-docs) (to generate registry documentation)\n\n### Install and update development tools\n\nRun the following command\n```sh\nmake install-devtools\n```\n\n### Makefile Commands\n\nCheck the subcommands in our [Makefile](Makefile) for useful dev tools and scripts.\n\n### Building The Provider\n\n1. Clone the repository\n1. Enter the repository directory\n1. Build the provider using the Makefile `install` command:\n\n```shell\nmake build\n```\n\n### Adding Dependencies\n\nThis provider uses [Go modules](https://github.com/golang/go/wiki/Modules).\nPlease see the Go documentation for the most up to date information about using Go modules.\n\nTo add a new dependency `github.com/author/dependency` to your Terraform provider:\n\n```shell\ngo get github.com/author/dependency\ngo mod tidy\n```\n\nThen commit the changes to `go.mod` and `go.sum`.\n\n### Developing the Provider\n\nIf you wish to work on the provider, you'll first need [Go](http://www.golang.org) installed on your machine (see [Requirements](#requirements) above).\n\nYou will also need to install the devtools used in this project (see [Install and update development tools](#install-and-update-development-tools)).\n\nTo compile the provider, run `make build`.\nThis will build the provider and put the provider binary in the `./bin` directory (see [Testing the provider locally](#testing-the-provider-locally)).\n\nTo generate or update documentation, run `make generate`.\n\nIn order to run the full suite of Acceptance tests, run `make testacc`.\n\n```shell\nmake testacc\n```\n\n### Testing the provider locally\n\nTo test the provider locally:\n\n1. Build the provider binary with `make build`. This will build and put the provider binary in the `./bin` directory\n2. Create a new file `~/.terraform.rc` and point the provider to the absolute **directory** path of the binary file:\n    ```hcl\n    provider_installation {\n      dev_overrides {\n        \"germanbrew/dotenv\" = \"/path/to/your/terraform-provider-dotenv/bin/\"\n      }\n      direct {}\n    }\n    ```\n3.  - Set the variable before running terraform commands:\n\n    ```sh\n    TF_CLI_CONFIG_FILE=~/.terraform.rc terraform plan\n    ```\n\n    - Or set the env variable `TF_CLI_CONFIG_FILE` and point it to `~/.terraform.rc`: e.g.\n\n    ```sh\n    export TF_CLI_CONFIG_FILE=~/.terraform.rc\n    ```\n\n4. Now you can just use terraform normally. A warning will appear, that notifies you that you are using an provider override\n    ```\n    Warning: Provider development overrides are in effect\n    ...\n    ```\n5. Unset the env variable if you don't want to use the local provider anymore:\n    ```sh\n    unset TF_CLI_CONFIG_FILE\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgermanbrew%2Fterraform-provider-dotenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgermanbrew%2Fterraform-provider-dotenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgermanbrew%2Fterraform-provider-dotenv/lists"}