{"id":19142273,"url":"https://github.com/martinbaillie/packer-plugin-ami-copy","last_synced_at":"2025-08-21T00:31:21.009Z","repository":{"id":37950302,"uuid":"134369238","full_name":"martinbaillie/packer-plugin-ami-copy","owner":"martinbaillie","description":"Packer post-processor plugin for copying, encrypting, tagging a built AMI into other accounts.","archived":false,"fork":false,"pushed_at":"2024-12-16T21:25:09.000Z","size":7444,"stargazers_count":35,"open_issues_count":6,"forks_count":23,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T23:33:24.406Z","etag":null,"topics":["ami","aws","hashicorp","hashicorp-packer","kms"],"latest_commit_sha":null,"homepage":"","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/martinbaillie.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},"funding":{"github":"martinbaillie"}},"created_at":"2018-05-22T06:17:29.000Z","updated_at":"2025-02-14T21:54:35.000Z","dependencies_parsed_at":"2024-06-19T00:00:53.983Z","dependency_job_id":"13c43fb8-deb4-4a1d-8961-d2167953f019","html_url":"https://github.com/martinbaillie/packer-plugin-ami-copy","commit_stats":null,"previous_names":["martinbaillie/packer-post-processor-ami-copy"],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/martinbaillie/packer-plugin-ami-copy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinbaillie%2Fpacker-plugin-ami-copy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinbaillie%2Fpacker-plugin-ami-copy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinbaillie%2Fpacker-plugin-ami-copy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinbaillie%2Fpacker-plugin-ami-copy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/martinbaillie","download_url":"https://codeload.github.com/martinbaillie/packer-plugin-ami-copy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinbaillie%2Fpacker-plugin-ami-copy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271409395,"owners_count":24754706,"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-08-20T02:00:09.606Z","response_time":69,"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":["ami","aws","hashicorp","hashicorp-packer","kms"],"created_at":"2024-11-09T07:26:35.991Z","updated_at":"2025-08-21T00:31:20.767Z","avatar_url":"https://github.com/martinbaillie.png","language":"Go","funding_links":["https://github.com/sponsors/martinbaillie"],"categories":[],"sub_categories":[],"readme":"[![License](https://img.shields.io/badge/license-BSD-brightgreen.svg?style=flat-square)](/LICENSE)\n[![Go Report Card](https://goreportcard.com/badge/github.com/martinbaillie/packer-plugin-ami-copy?style=flat-square)](https://goreportcard.com/report/github.com/martinbaillie/packer-plugin-ami-copy)\n[![Go Doc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](http://godoc.org/github.com/martinbaillie/packer-plugin-ami-copy)\n[![Build](https://github.com/martinbaillie/packer-plugin-ami-copy/actions/workflows/build.yml/badge.svg)](https://github.com/martinbaillie/packer-plugin-ami-copy/actions/workflows/build.yml)\n[![Release](https://github.com/martinbaillie/packer-plugin-ami-copy/actions/workflows/release.yml/badge.svg)](https://github.com/martinbaillie/packer-plugin-ami-copy/actions/workflows/release.yml)\n\n# packer-plugin-ami-copy\n\n\u003e [!NOTE]\n\u003e\n\u003e While I'm aware this is still heavily used in some organisations, I haven't personally used this\n\u003e plugin in over 5 years. If you want something to change about it, please don't raise issues. Just\n\u003e raise PRs.\n\n## Description\n\nThis plugin fills a gap in a lot of AWS image bakery workflows where the source\nimage built by any of Packer's Amazon builders (EBS, Chroot, Instance etc.)\nneeds to be copied to a number of target accounts.\n\nFor each `region:ami-id` built, the plugin will copy the image and tags, and\noptionally encrypt the target AMI and wait for it to become active.\n\n## Installation\n\n### Using pre-built releases\n\n#### Using the `packer init` command\n\nStarting from version 1.7, Packer supports a new `packer init` command allowing\nautomatic installation of Packer plugins. Read the [Packer\ndocumentation][packer-doc-init] for more information.\n\n#### Manual installation\n\nYou can find pre-built binary releases of the plugin [here][releases].\nOnce you have downloaded the latest archive corresponding to your target OS,\nuncompress it to retrieve the plugin binary file corresponding to your platform.\nTo install the plugin, please follow the Packer documentation on\n[installing a plugin][packer-doc-plugins].\n\nYou can and should verify the authenticity and integrity of the plugin you\ndownloaded. All released binaries are hashed and the resulting sums are signed\nby my GPG key.\n\n```sh\n# Import my key.\ncurl -sS https://github.com/martinbaillie.gpg | gpg --import -\n\n# Verify the authenticity.\ngpg --verify SHA256SUMS.sig SHA256SUMS\n\n# Verify the integrity.\nshasum -a 256 -c SHA256SUMS\n```\n\n### From Sources\n\nIf you prefer to build the plugin from sources you will need a modern Go\ncompiler toolchain (Go 1.16+ ideally). If you are a Nix user,\n[`shell.nix`](shell.nix) can be of use here.\n\nClone the GitHub repository locally then run a `go build` from the root. Upon\nsuccessful compilation, a `packer-plugin-ami-copy` plugin binary will be\nproduced. To install it, follow the official Packer documentation on\n[installing a plugin][packer-doc-plugins].\n\n## Usage\n\nFor more information on how to use the plugin, see [`example/`](example).\n\n## Configuration\n\nType: `ami-copy`\n\nRequired:\n\n- `ami_users` (array of strings) - A list of account IDs to copy the images to. NOTE: you must share AMI and snapshot access in the builder through `ami_users` and `snapshot_users` respectively.\n\nOptional:\n\n- `copy_concurrency` (integer) - Limit the number of copies executed in parallel (default: unlimited).\n- `encrypt_boot` (boolean) - create the copy with an encrypted EBS volume in the target accounts\n- `kms_key_id` (string) - the ID of the KMS key to use for boot volume encryption. (default EBS KMS key used otherwise).\n- `ensure_available` (boolean) - wait until the AMI becomes available in the copy target account(s)\n- `keep_artifact` (boolean) - remove the original generated AMI after copy (default: true)\n- `manifest_output` (string) - the name of the file we output AMI IDs to, in JSON format (default: no manifest file is written)\n- `tags_only` (boolean) - if set to `true`, then the AMI won't be copied, but the tags will be duplicated on the shared AMI in the destination account.\n\n[packer-doc-plugins]: https://www.packer.io/docs/extending/plugins/#installing-plugins\n[packer-doc-init]: https://www.packer.io/docs/commands/init\n[packer-doc-plugins]: https://www.packer.io/docs/extending/plugins/#installing-plugins\n[packer]: https://www.packer.io/\n[releases]: https://github.com/martinbaillie/packer-plugin-ami-copy/releases\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartinbaillie%2Fpacker-plugin-ami-copy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmartinbaillie%2Fpacker-plugin-ami-copy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartinbaillie%2Fpacker-plugin-ami-copy/lists"}