{"id":20334925,"url":"https://github.com/mdb/terraform-provider-example","last_synced_at":"2026-01-07T13:47:27.407Z","repository":{"id":137137989,"uuid":"58209317","full_name":"mdb/terraform-provider-example","owner":"mdb","description":"An example demo-ing how to create a custom Terraform provider, as well as how to reproduce a presumed Terraform bug","archived":false,"fork":false,"pushed_at":"2016-05-06T14:52:23.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T14:49:34.440Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mdb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2016-05-06T13:30:30.000Z","updated_at":"2016-05-14T04:24:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"da867334-29f8-45d8-9952-96e0dde880a8","html_url":"https://github.com/mdb/terraform-provider-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Fterraform-provider-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Fterraform-provider-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Fterraform-provider-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Fterraform-provider-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdb","download_url":"https://codeload.github.com/mdb/terraform-provider-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246140592,"owners_count":20729802,"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":[],"created_at":"2024-11-14T20:38:36.003Z","updated_at":"2026-01-07T13:47:27.352Z","avatar_url":"https://github.com/mdb.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# terraform-provider-example\n\nA basic [Terraform](http://terraform.io) provider example.\n\nThis repo also seeks to illustrate a feature opportunity within Terraform\nwherein a provider resource with a `connection` key of type `TypeList` seemingly yields\nin misleading error message, as [`connection` is a reserved word](https://www.terraform.io/docs/provisioners/connection.html);\nthe key must be named something other than `connection`. In such a scenario,\nerror output other than `\"connection\": required field is not set` could be helpful.\n\n## To observe the bug\n```\n# clone the repo to your $GOPATH:\ngit clone https://github.com/mdb/terraform-provider-example\n\n# activate the provider by adding the following to `~/.terraformrc`\nproviders {\n  \"example\" = \"/YOUR_GOPATH/bin/terraform-provider-example\"\n}\n\n# install the example provider\ncd terraform-provider-example\nmake install\n\n# observe that the following outputs an error:\n# * example_thing.test_thing: \"connection\": required field is not set\nterraform plan\n```\n\nTo observe that changing the key name to something other than `connection` --\nin this case `thing_connection` -- works as expected:\n\n```\n# check out the `works` branch\ngit checkout works\n\n# install the example provider\ncd terraform-provider-example\nmake install\n\n# observe that the following works as expected:\nterraform plan\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdb%2Fterraform-provider-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdb%2Fterraform-provider-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdb%2Fterraform-provider-example/lists"}