{"id":23949638,"url":"https://github.com/orange-cloudavenue/terraform-resource-templates","last_synced_at":"2025-04-12T22:28:39.552Z","repository":{"id":65935583,"uuid":"602721455","full_name":"orange-cloudavenue/terraform-resource-templates","owner":"orange-cloudavenue","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-09T07:47:13.000Z","size":122,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T08:31:49.520Z","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":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orange-cloudavenue.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2023-02-16T20:03:34.000Z","updated_at":"2025-04-09T07:47:16.000Z","dependencies_parsed_at":"2023-11-23T11:23:24.770Z","dependency_job_id":"a390fc71-0091-4ef1-8613-b84320a0d390","html_url":"https://github.com/orange-cloudavenue/terraform-resource-templates","commit_stats":null,"previous_names":["orange-cloudavenue/terraform-provider-resource-templates"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orange-cloudavenue%2Fterraform-resource-templates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orange-cloudavenue%2Fterraform-resource-templates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orange-cloudavenue%2Fterraform-resource-templates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orange-cloudavenue%2Fterraform-resource-templates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orange-cloudavenue","download_url":"https://codeload.github.com/orange-cloudavenue/terraform-resource-templates/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248639287,"owners_count":21137817,"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":"2025-01-06T11:49:20.837Z","updated_at":"2025-04-12T22:28:39.533Z","avatar_url":"https://github.com/orange-cloudavenue.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# terraform-provider-resource-template\n\n`terraform-provider-resource-template` is a command-line tool that generates Go code templates for Terraform data sources and resources.\n\n## Installation\n\nTo install `terraform-provider-resource-template`, use the following command:\n\n```bash\ngo install github.com/orange-cloudavenue/terraform-provider-resource-template@latest\n```\n\n## Usage\n\n### Generating a data source template\n\nTo generate a template for a Terraform data source, create a file with the desired name (e.g. `my_name_datasource.go`) and the following content:\n\n```go\n//tfname: myPkgName_tf_datasource_name\npackage myPkgName\n```\n\nHere, `myPkgName` is the name of the Go package that will contain the data source implementation, and `my_tfname` is the name of the data source as it appears in the Terraform configuration.\nSee below real example.\n\nYou can now generate the file like this :\n\n```bash\nterraform-provider-resource-template -filename my_name_datasource.go\n```\n\n### Generating a resource template\n\nTo generate a template for a Terraform resource, create a file with the desired name (e.g. `my_name_resource.go`) and the following content:\n\n```go\n//tfname: myPkgName_tf_resource_name\npackage myPkgName\n```\n\nHere, `myPkgName` is the name of the Go package that will contain the resource implementation, and `my_tfname` is the type of resource as it appears in the Terraform configuration.\nSee below real example.\n\nYou can now generate the file like this :\n\n```bash\nterraform-templates -filename my_name_resource.go\n```\n\n### Real example\n\nFor creating resource `myprovider_iam_user` create file `iam_user_resource.go` with content:\n\n```go\n//tfname: iam_user\npackage iam\n```\n\nThen run:\n\n```bash\nterraform-templates -filename iam_user_resource.go\n```\n\n## Contributing\n\nPull requests are welcome! If you find a bug or would like to request a new feature, please open an issue.\n\nBefore submitting a pull request, please ensure that your changes are properly tested and that the documentation has been updated.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forange-cloudavenue%2Fterraform-resource-templates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forange-cloudavenue%2Fterraform-resource-templates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forange-cloudavenue%2Fterraform-resource-templates/lists"}