{"id":21725279,"url":"https://github.com/jameswoolfenden/packer-by-example","last_synced_at":"2025-09-24T01:53:20.846Z","repository":{"id":81359141,"uuid":"164502242","full_name":"JamesWoolfenden/packer-by-example","owner":"JamesWoolfenden","description":"Image Build Process for Packer, with files for Azure, GCP and AWS for Linux (Ubuntu, Debian and Redhat) and Windows ","archived":false,"fork":false,"pushed_at":"2023-03-09T17:25:32.000Z","size":250,"stargazers_count":40,"open_issues_count":0,"forks_count":17,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T22:53:38.216Z","etag":null,"topics":["aws","examples","gcp","packer"],"latest_commit_sha":null,"homepage":"","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JamesWoolfenden.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,"zenodo":null}},"created_at":"2019-01-07T21:51:53.000Z","updated_at":"2024-10-18T07:24:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"16ad0598-250b-46cf-8401-fa0538448601","html_url":"https://github.com/JamesWoolfenden/packer-by-example","commit_stats":null,"previous_names":[],"tags_count":45,"template":false,"template_full_name":null,"purl":"pkg:github/JamesWoolfenden/packer-by-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamesWoolfenden%2Fpacker-by-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamesWoolfenden%2Fpacker-by-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamesWoolfenden%2Fpacker-by-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamesWoolfenden%2Fpacker-by-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JamesWoolfenden","download_url":"https://codeload.github.com/JamesWoolfenden/packer-by-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamesWoolfenden%2Fpacker-by-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276678851,"owners_count":25684804,"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","status":"online","status_checked_at":"2025-09-23T02:00:09.130Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["aws","examples","gcp","packer"],"created_at":"2024-11-26T03:16:57.735Z","updated_at":"2025-09-24T01:53:20.834Z","avatar_url":"https://github.com/JamesWoolfenden.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Packer by Example\n\n[![Latest Release](https://img.shields.io/github/v/tag/JamesWoolfenden/packer-by-example.svg)](https://github.com/JamesWoolfenden/packer-by-example)\n\nBy [James Woolfenden](https://www.linkedin.com/in/jameswoolfenden/)\n\nPacker-by-example is a collection of Scripts, Ansible, Makefiles and Packer files to help build images in the Public Cloud.\nIt's designed to work with CI/CD systems such as Travis CI, CircleCI and Jenkins, or even at your console.\nThere many different examples for different type of Linux and Windows.\n---\n\nIt's 100% Open Source and licensed under the [APACHE2](LICENSE).\n\n## Introduction\n\n### Install\n\nHere's how to get started...\n\n1. `git clone https://github.com/jameswoolfenden/packer-by-example.git` to pull down the repository\n\n2. `./setup-packer.sh` to get the tool. Or `brew install packer` on MacOS or `cinst packer` on Windows.\n\n### Usage\n\nYou can run packer directly or if it's HCL2, a folder, otherwise you can use the build wrapper scripts supplied.\nTo run:\n\n```bash tab=\"*nix\"\n./build.sh -p ./packfiles/CentOS/base-aws.json  -e ./environment/personal-jgw.json\n```\n\nOr on Windows:\n\n```bash tab=\"powershell\"\n .\\build.ps1 -packfile .\\packfiles\\CentOS\\base-aws.json -environment .\\environment\\personal-jgw.json\n```\n\nThe environment files hold variables and the packfiles are the packer **json** templates. I'd prefer not to need the variable files at all but some values must be supplied.\n\nPacker can be used to make an AMI that is pre-built for EC2 with support for Cloudwatch Logs and Metrics:\n\n\u003cimg src=\"https://gist.githubusercontent.com/JamesWoolfenden/aec6aa174646655fb0374be66b899327/raw/b4cc4244068fa95c9bf9ce432c2531b8c5f9acde/termtosvg_0_bpl_ol.svg?sanitize=true\"\u003e\n\nThis Repository contains a number of other examples for using Packer, with software installed for different OS and CloudPlatforms, ready to be configured at launch time.\n\nInstructions for setting up each authenticatiom for Cloud provider are here:\n\n- [AWS](docs/AWS.MD)\n- [GCP](docs/GCP.MD)\n- [AZURE](docs/AZURE.MD)\n\nThere are examples for Windows and different Linux distributions, and different versions of each.\nThe \"packfiles\" have examples of using basic features of script or Ansible providers to configure your images, as well as a method for versioning the AMI's.\n\n## **NEW HCL2**\n\nPacker has started adding in support for HCL2, this means that Packer is starting to look and feel like Terraform. It's still very much a in beta.\n\nI have included a working example in the HCL2 folder.\n\n```CLI\n packer build ./hcl2/ubuntu/\n```\n\nWith HCL2 You can separate out builders from the Provisioners.\n\n## Troubleshooting\n\nPacker is a tidy tool and to investigate failures you need to tell it not to be. Supply the Debug Flag and the tool will leave the unfinished image  behind and the SSH key to connect.\n\n### Common issue: SSH is blocked\n\nSome Environments lock down inbound and outbound SSH connections by blocking port 22, 3389.\nCheck you're not making your AMI'S in private subnet and waiting pointlessly.\n\n## Help\n\n**Got a question?**\n\nFile a GitHub [issue](https://github.com/JamesWoolfenden/packer-by-example/issues).\n\n## Contributing\n\n### Bug Reports \u0026 Feature Requests\n\nPlease use the [issue tracker](https://github.com/JamesWoolfenden/packer-by-example/issues) to report any bugs or file feature requests.\n\n## Copyrights\n\nCopyright © 2019-2023 James Woolfenden\n\n## License\n\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\nSee [LICENSE](LICENSE) for full details.\n\nLicensed to the Apache Software Foundation (ASF) under one\nor more contributor license agreements.  See the NOTICE file\ndistributed with this work for additional information\nregarding copyright ownership.  The ASF licenses this file\nto you under the Apache License, Version 2.0 (the\n\"License\"); you may not use this file except in compliance\nwith the License.  You may obtain a copy of the License at\n\n\u003chttps://www.apache.org/licenses/LICENSE-2.0\u003e\n\nUnless required by applicable law or agreed to in writing,\nsoftware distributed under the License is distributed on an\n\"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, either express or implied.  See the License for the\nspecific language governing permissions and limitations\nunder the License.\n\n### Contributors\n\n[![James Woolfenden][jameswoolfenden_avatar]][jameswoolfenden_homepage]\u003cbr/\u003e[James Woolfenden][jameswoolfenden_homepage] |\n\n[jameswoolfenden_homepage]: https://github.com/jameswoolfenden\n[jameswoolfenden_avatar]: https://github.com/jameswoolfenden.png?size=150\n[github]: https://github.com/jameswoolfenden\n[linkedin]: https://www.linkedin.com/in/jameswoolfenden/\n[twitter]: https://twitter.com/jimwoolfenden\n[share_twitter]: https://twitter.com/intent/tweet/?text=packer-by-example\u0026url=https://github.com/JamesWoolfenden/packer-by-example\n[share_linkedin]: https://www.linkedin.com/shareArticle?mini=true\u0026title=packer-by-example\u0026url=https://github.com/JamesWoolfenden/packer-by-example\n[share_reddit]: https://reddit.com/submit/?url=https://github.com/JamesWoolfenden/packer-by-example\n[share_facebook]: https://facebook.com/sharer/sharer.php?u=https://github.com/JamesWoolfenden/packer-by-example\n[share_email]: mailto:?subject=packer-by-example\u0026body=https://github.com/JamesWoolfenden/packer-by-example\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjameswoolfenden%2Fpacker-by-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjameswoolfenden%2Fpacker-by-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjameswoolfenden%2Fpacker-by-example/lists"}