简体   繁体   English

如何使用打包程序创建新的Windows AMI

[英]How to create new windows AMI with packer

I have an EC2 running Windows with 2 volumes, one for OS and one for DB and application. 我有一台运行Windows的EC2,有2个卷,一个用于OS,一个用于DB和应用程序。 I've tried to search in Packer docs for creating new updated image but all I've found is that I need to provide existing AMI ID, which currently I don't have. 我试图在Packer文档中搜索以创建新的更新图像,但是发现的所有内容是我需要提供现有的AMI ID,而目前我还没有。 How can I use packer to create an update image of the running instance? 如何使用打包程序创建正在运行的实例的更新映像?

From the Packer documentation: 从Packer文档中:

What is Packer? 什么是Packer?

Packer is an open source tool for creating identical machine images for multiple platforms from a single source configuration. Packer是一个开放源代码工具,可从一个源配置为多个平台创建相同的机器映像。 Ref 参考

Packer can't create an image from a running instance and that is not the purpose of Packer, since that would not be repeatable. Packer不能从正在运行的实例创建映像 ,这不是Packer的目的,因为这是不可重复的。

Instead just follow the AWS documentation for Creating a Windows AMI from a Running Instance . 相反,只需遵循AWS文档中有关从运行实例创建Windows AMI的说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM