creating-ec2-image-builder-pipeline

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Creating an EC2 Image Builder Pipeline

创建EC2 Image Builder流水线

Overview

概述

Domain expertise for creating and managing EC2 Image Builder pipelines that automate custom AMI creation. Covers the full lifecycle: IAM role setup, build component definition, image recipe creation, infrastructure and distribution configuration, pipeline execution, and launch template creation.
提供创建和管理EC2 Image Builder流水线的领域专业知识,可实现自定义AMI的自动化创建。涵盖完整生命周期:IAM角色设置、构建组件定义、镜像配方创建、基础设施与分发配置、流水线执行以及启动模板创建。

Create an Image Builder pipeline

创建Image Builder流水线

To create a complete EC2 Image Builder pipeline with custom AMI builds and cross-region distribution, follow the procedure exactly. See EC2 Image Builder pipeline procedure.
要创建具备自定义AMI构建和跨区域分发功能的完整EC2 Image Builder流水线,请严格遵循以下步骤。详情请参见EC2 Image Builder流水线流程

Troubleshooting

故障排查

InvalidParameterValueException on pipeline operations

流水线操作时出现InvalidParameterValueException

Use the exact ARN returned by API calls — do not construct ARNs manually. Pipeline ARNs must follow
arn:<partition>:imagebuilder:<region>:<account>:image-pipeline/<name>
.
使用API调用返回的精确ARN——请勿手动构造ARN。流水线ARN必须遵循
arn:<partition>:imagebuilder:<region>:<account>:image-pipeline/<name>
格式。

InstanceProfileNotFoundException

InstanceProfileNotFoundException

Wait 10–15 seconds after creating the instance profile before using it. IAM changes are eventually consistent.
创建实例配置文件后,请等待10–15秒再使用它。IAM变更最终会保持一致。

ResourceAlreadyExistsException

ResourceAlreadyExistsException

Delete the existing resource first or use a different name/version.
请先删除现有资源,或使用不同的名称/版本。

Build instance fails to launch

构建实例启动失败

Verify the instance profile exists, all three IAM policies are attached, and the instance type is available in the region.
验证实例配置文件是否存在、是否已附加所有三个IAM策略,以及该实例类型在对应区域是否可用。