{"id":22621970,"url":"https://github.com/servian/packer-plugin-terraform","last_synced_at":"2025-04-11T16:40:36.194Z","repository":{"id":38085095,"uuid":"222854450","full_name":"servian/packer-plugin-terraform","owner":"servian","description":"A Packer plugin for provisioning with Terraform (local)","archived":false,"fork":false,"pushed_at":"2023-03-09T14:14:39.000Z","size":118,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":22,"default_branch":"main","last_synced_at":"2025-04-01T17:08:51.807Z","etag":null,"topics":["packer","packer-plugin","packer-provisioner","terraform"],"latest_commit_sha":null,"homepage":"https://medium.com/weareservian/how-not-to-use-terraform-31c9e7fe2607","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/servian.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}},"created_at":"2019-11-20T04:59:35.000Z","updated_at":"2024-07-22T15:59:25.000Z","dependencies_parsed_at":"2023-07-12T18:01:01.822Z","dependency_job_id":null,"html_url":"https://github.com/servian/packer-plugin-terraform","commit_stats":{"total_commits":45,"total_committers":3,"mean_commits":15.0,"dds":0.2222222222222222,"last_synced_commit":"724f06782b7668742e3a6df5d962e9ca295478d1"},"previous_names":["servian/packer-provisioner-terraform"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/servian%2Fpacker-plugin-terraform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/servian%2Fpacker-plugin-terraform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/servian%2Fpacker-plugin-terraform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/servian%2Fpacker-plugin-terraform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/servian","download_url":"https://codeload.github.com/servian/packer-plugin-terraform/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248442010,"owners_count":21104115,"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":["packer","packer-plugin","packer-provisioner","terraform"],"created_at":"2024-12-08T23:12:39.805Z","updated_at":"2025-04-11T16:40:36.169Z","avatar_url":"https://github.com/servian.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Packer Plugin Terraform\n\n* [![Build Status](https://www.travis-ci.com/servian/packer-plugin-terraform.svg?branch=main)](https://travis-ci.com/servian/packer-plugin-terraform)\n* [![license MPL-2.0](https://img.shields.io/badge/license-MPL--2.0-brightgreen.svg)](https://opensource.org/licenses/MPL-2.0)\n* [![GoReportCard](https://goreportcard.com/badge/github.com/servian/packer-plugin-terraform)](https://goreportcard.com/report/github.com/servian/packer-plugin-terraform)\n* [![Version](http://img.shields.io/github/release/servian/packer-plugin-terraform/all.svg?style=flat)](https://github.com/Servian/packer-plugin-terraform/releases)\n\nInspired by Megan Marsh's talk https://www.hashicorp.com/resources/extending-packer\nI bit the bullet and started making my own ill advised provisioner for Terraform.\n\n## Usage\n\n    packer {\n      required_plugins {\n        terraform = {\n          version = \"= 0.0.7\"\n          source = \"github.com/servian/terraform\"\n        }\n      }\n    }\n\n    source \"docker\" \"test_server\" {\n      commit = true\n      image  = \"amazonlinux:2\"\n    }\n\n    build {\n      sources = [\"source.docker.test_server\"]\n\n      provisioner \"terraform\" {\n        code_path       = \"./tfcode\"\n        prevent_sudo    = \"true\"\n        variable_string = jsonencode({\n            consul_server_node = false\n        })\n        version = \"1.0.0\"\n      }\n    }\n\n## parameters\n\n * `version`(string) - the version of Terraform to install\n * `code_path`(string) - (required) the path to the terraform code\n * `run_command`(string) - override the command to run Terraform\n * `install_command`(string) - override the command to run Terraform\n * `staging_dir`(string) - override the remote path to stage the code.\n * `variables`(map(String, String)) - set terraform variables into a terraform.auto.tfvars file\n\n## License\n\nThe code is available as open source under the terms of the [Mozilla Public License 2.0](https://opensource.org/licenses/MPL-2.0)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fservian%2Fpacker-plugin-terraform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fservian%2Fpacker-plugin-terraform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fservian%2Fpacker-plugin-terraform/lists"}