如何使用 packer 创建新的 windows AMI

How to create new windows AMI with packer

我有一个 EC2 运行 Windows,有 2 个卷,一个用于 OS,另一个用于数据库和应用程序。 我尝试在 Packer 文档中搜索以创建新的更新图像,但我发现我需要提供现有的 AMI ID,目前我没有。 如何使用加壳器创建 运行 实例的更新映像?

来自 Packer 文档:

What is Packer?

Packer is an open source tool for creating identical machine images for multiple platforms from a single source configuration. Ref

Packer 无法从 运行 实例创建图像,这不是 Packer 的目的,因为那是不可重复的。

而是遵循 Creating a Windows AMI from a Running Instance 的 AWS 文档。