构建环境计算模式和类型 - AWS CodeBuild

构建环境计算模式和类型

在 CodeBuild 中,您可以指定 CodeBuild 用于运行您的构建的计算和运行时环境映像。计算 是指由 CodeBuild 管理和维护的计算引擎(CPU、内存和操作系统)。运行时环境映像 是在您选择的计算平台上运行的容器映像,包含您的构建可能需要的额外工具,例如 AWS CLI。

关于计算

CodeBuild 提供 EC2 和 AWS Lambda 计算模式。EC2 可以提高构建过程的灵活性,而 AWS Lambda 可以提高启动速度。由于 AWS Lambda 启动延迟较低,因此支持更快的构建。AWS Lambda 还可以自动扩展,因此构建无需在队列中等待运行。有关更多信息,请参阅 在 AWS Lambda 计算上运行构建

借助 EC2 计算模式,您可以使用按需或预留容量实例集运行构建。对于按需实例集,您可以选择预定义的计算类型,例如 BUILD_GENERAL1_SMALLBUILD_GENERAL1_LARGE。有关更多信息,请参阅 关于按需环境类型。对于预留容量实例集,您可以选择自己的计算配置,包括 vCPU、内存和磁盘空间。指定配置后,CodeBuild 将选择所支持的符合您要求的计算类型。有关更多信息,请参阅 关于预留容量环境类型

关于预留容量环境类型

AWS CodeBuild 为预留容量实例集提供 Linux x86、Arm、GPU、Windows 和 macOS 环境类型。下表显示了按区域排序的可用计算机类型、内存、vCPU 和磁盘空间:

US East (N. Virginia)
环境类型 vCPU 内存 磁盘空间 计算机类型 计算实例类型
ARM 2 4 GiB 64 GB GENERAL reserved.arm.2cpu.4gib
ARM 4 8 GiB 128 GB GENERAL reserved.arm.4cpu.8gib
ARM 8 16 GiB 128 GB GENERAL reserved.arm.8cpu.16gib
ARM 16 32 GiB 256GB GENERAL reserved.arm.16cpu.32gib
ARM 32 64 GiB 256GB GENERAL reserved.arm.32cpu.64gib
ARM 48 96 GiB 512GB GENERAL reserved.arm.48cpu.96gib
ARM 64 128 GiB 824 GB GENERAL reserved.arm.64cpu.128gib
ARM EC2 2 4 GiB 64 GB GENERAL reserved.arm.2cpu.4gib
ARM EC2 4 8 GiB 128 GB GENERAL reserved.arm.4cpu.8gib
ARM EC2 8 16 GiB 128 GB GENERAL reserved.arm.8cpu.16gib
Linux 2 4 GiB 64 GB GENERAL reserved.x86-64.2cpu.4gib
Linux 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Linux 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib
Linux 16 32 GiB 256GB GENERAL reserved.x86-64.16cpu.32gib
Linux 36 72 GiB 256GB GENERAL reserved.x86-64.36cpu.72gib
Linux 48 96 GiB 512GB GENERAL reserved.x86-64.48cpu.96gib
Linux 72 144 GiB 824 GB GENERAL reserved.x86-64.72cpu.144gib
Linux 96 192 GiB 824 GB GENERAL reserved.x86-64.96cpu.192gib
Linux 48 96 GiB 824 GB (SSD) NVME reserved.x86-64.48cpu.96gib.nvme
Linux 72 144 GiB 824 GB (SSD) NVME reserved.x86-64.72cpu.144gib.nvme
Linux EC2 2 4 GiB 64 GB GENERAL reserved.x86-64.2cpu.4gib
Linux EC2 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Linux EC2 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib
Linux GPU 4 16 GiB 235 GB (SSD) NVME reserved.gpu.4cpu.16gib.nvme
Linux GPU 8 32 GiB 435 GB (SSD) NVME reserved.gpu.8cpu.32gib.nvme
Linux GPU 16 64 GiB 585 GB (SSD) NVME reserved.gpu.16cpu.64gib.nvme
Linux GPU 32 128 GiB 885 GB (SSD) NVME reserved.gpu.32cpu.128gib.nvme
Linux GPU 48 192 GiB 3785 GB (SSD) NVME reserved.gpu.48cpu.192gib.nvme
Linux GPU 64 256 GiB 1885 GB (SSD) NVME reserved.gpu.64cpu.256gib.nvme
Linux GPU 96 384 GiB 3785 GB (SSD) NVME reserved.gpu.96cpu.384gib.nvme
macOS 8 24 GiB 128 GB GENERAL reserved.arm.m2.8cpu.24gib
macOS 12 32 GiB 256GB GENERAL reserved.arm.m2.12cpu.32gib
Windows 2 4 GiB 64 GB GENERAL reserved.x86-64.2cpu.4gib
Windows 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Windows 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib
Windows 16 32 GiB 256GB GENERAL reserved.x86-64.16cpu.32gib
Windows 36 72 GiB 256GB GENERAL reserved.x86-64.36cpu.72gib
Windows 48 96 GiB 512GB GENERAL reserved.x86-64.48cpu.96gib
Windows 72 144 GiB 824 GB GENERAL reserved.x86-64.72cpu.144gib
Windows 96 192 GiB 824 GB GENERAL reserved.x86-64.96cpu.192gib
Windows EC2 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Windows EC2 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib

有关定价标识符的更多信息,请参阅 https://aws.amazon.com/codebuild/pricing/

US East (Ohio)
环境类型 vCPU 内存 磁盘空间 计算机类型 计算实例类型
ARM 2 4 GiB 64 GB GENERAL reserved.arm.2cpu.4gib
ARM 4 8 GiB 128 GB GENERAL reserved.arm.4cpu.8gib
ARM 8 16 GiB 128 GB GENERAL reserved.arm.8cpu.16gib
ARM 16 32 GiB 256GB GENERAL reserved.arm.16cpu.32gib
ARM 32 64 GiB 256GB GENERAL reserved.arm.32cpu.64gib
ARM 48 96 GiB 512GB GENERAL reserved.arm.48cpu.96gib
ARM 64 128 GiB 824 GB GENERAL reserved.arm.64cpu.128gib
ARM EC2 2 4 GiB 64 GB GENERAL reserved.arm.2cpu.4gib
ARM EC2 4 8 GiB 128 GB GENERAL reserved.arm.4cpu.8gib
ARM EC2 8 16 GiB 128 GB GENERAL reserved.arm.8cpu.16gib
Linux 2 4 GiB 64 GB GENERAL reserved.x86-64.2cpu.4gib
Linux 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Linux 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib
Linux 16 32 GiB 256GB GENERAL reserved.x86-64.16cpu.32gib
Linux 36 72 GiB 256GB GENERAL reserved.x86-64.36cpu.72gib
Linux 48 96 GiB 512GB GENERAL reserved.x86-64.48cpu.96gib
Linux 48 96 GiB 824 GB (SSD) NVME reserved.x86-64.48cpu.96gib.nvme
Linux 72 144 GiB 824 GB (SSD) NVME reserved.x86-64.72cpu.144gib.nvme
Linux EC2 2 4 GiB 64 GB GENERAL reserved.x86-64.2cpu.4gib
Linux EC2 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Linux EC2 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib
Linux GPU 4 16 GiB 235 GB (SSD) NVME reserved.gpu.4cpu.16gib.nvme
Linux GPU 8 32 GiB 435 GB (SSD) NVME reserved.gpu.8cpu.32gib.nvme
Linux GPU 16 64 GiB 585 GB (SSD) NVME reserved.gpu.16cpu.64gib.nvme
Linux GPU 32 128 GiB 885 GB (SSD) NVME reserved.gpu.32cpu.128gib.nvme
Linux GPU 48 192 GiB 3785 GB (SSD) NVME reserved.gpu.48cpu.192gib.nvme
macOS 8 24 GiB 128 GB GENERAL reserved.arm.m2.8cpu.24gib
macOS 12 32 GiB 256GB GENERAL reserved.arm.m2.12cpu.32gib
Windows 2 4 GiB 64 GB GENERAL reserved.x86-64.2cpu.4gib
Windows 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Windows 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib
Windows 16 32 GiB 256GB GENERAL reserved.x86-64.16cpu.32gib
Windows 36 72 GiB 256GB GENERAL reserved.x86-64.36cpu.72gib
Windows 48 96 GiB 512GB GENERAL reserved.x86-64.48cpu.96gib
Windows EC2 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Windows EC2 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib

有关定价标识符的更多信息,请参阅 https://aws.amazon.com/codebuild/pricing/

US West (Oregon)
环境类型 vCPU 内存 磁盘空间 计算机类型 计算实例类型
ARM 2 4 GiB 64 GB GENERAL reserved.arm.2cpu.4gib
ARM 4 8 GiB 128 GB GENERAL reserved.arm.4cpu.8gib
ARM 8 16 GiB 128 GB GENERAL reserved.arm.8cpu.16gib
ARM 16 32 GiB 256GB GENERAL reserved.arm.16cpu.32gib
ARM 32 64 GiB 256GB GENERAL reserved.arm.32cpu.64gib
ARM 48 96 GiB 512GB GENERAL reserved.arm.48cpu.96gib
ARM 64 128 GiB 824 GB GENERAL reserved.arm.64cpu.128gib
ARM EC2 2 4 GiB 64 GB GENERAL reserved.arm.2cpu.4gib
ARM EC2 4 8 GiB 128 GB GENERAL reserved.arm.4cpu.8gib
ARM EC2 8 16 GiB 128 GB GENERAL reserved.arm.8cpu.16gib
Linux 2 4 GiB 64 GB GENERAL reserved.x86-64.2cpu.4gib
Linux 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Linux 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib
Linux 16 32 GiB 256GB GENERAL reserved.x86-64.16cpu.32gib
Linux 36 72 GiB 256GB GENERAL reserved.x86-64.36cpu.72gib
Linux 48 96 GiB 512GB GENERAL reserved.x86-64.48cpu.96gib
Linux 72 144 GiB 824 GB GENERAL reserved.x86-64.72cpu.144gib
Linux 96 192 GiB 824 GB GENERAL reserved.x86-64.96cpu.192gib
Linux 48 96 GiB 824 GB (SSD) NVME reserved.x86-64.48cpu.96gib.nvme
Linux 72 144 GiB 824 GB (SSD) NVME reserved.x86-64.72cpu.144gib.nvme
Linux EC2 2 4 GiB 64 GB GENERAL reserved.x86-64.2cpu.4gib
Linux EC2 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Linux EC2 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib
Linux GPU 4 16 GiB 235 GB (SSD) NVME reserved.gpu.4cpu.16gib.nvme
Linux GPU 8 32 GiB 435 GB (SSD) NVME reserved.gpu.8cpu.32gib.nvme
Linux GPU 16 64 GiB 585 GB (SSD) NVME reserved.gpu.16cpu.64gib.nvme
Linux GPU 32 128 GiB 885 GB (SSD) NVME reserved.gpu.32cpu.128gib.nvme
Linux GPU 48 192 GiB 3785 GB (SSD) NVME reserved.gpu.48cpu.192gib.nvme
Linux GPU 64 256 GiB 1885 GB (SSD) NVME reserved.gpu.64cpu.256gib.nvme
macOS 8 24 GiB 128 GB GENERAL reserved.arm.m2.8cpu.24gib
macOS 12 32 GiB 256GB GENERAL reserved.arm.m2.12cpu.32gib
Windows 2 4 GiB 64 GB GENERAL reserved.x86-64.2cpu.4gib
Windows 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Windows 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib
Windows 16 32 GiB 256GB GENERAL reserved.x86-64.16cpu.32gib
Windows 36 72 GiB 256GB GENERAL reserved.x86-64.36cpu.72gib
Windows 48 96 GiB 512GB GENERAL reserved.x86-64.48cpu.96gib
Windows 72 144 GiB 824 GB GENERAL reserved.x86-64.72cpu.144gib
Windows 96 192 GiB 824 GB GENERAL reserved.x86-64.96cpu.192gib
Windows EC2 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Windows EC2 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib

有关定价标识符的更多信息,请参阅 https://aws.amazon.com/codebuild/pricing/

Asia Pacific (Tokyo)
环境类型 vCPU 内存 磁盘空间 计算机类型 计算实例类型
ARM 2 4 GiB 64 GB GENERAL reserved.arm.2cpu.4gib
ARM 4 8 GiB 128 GB GENERAL reserved.arm.4cpu.8gib
ARM 8 16 GiB 128 GB GENERAL reserved.arm.8cpu.16gib
ARM 16 32 GiB 256GB GENERAL reserved.arm.16cpu.32gib
ARM 32 64 GiB 256GB GENERAL reserved.arm.32cpu.64gib
ARM 48 96 GiB 512GB GENERAL reserved.arm.48cpu.96gib
ARM 64 128 GiB 824 GB GENERAL reserved.arm.64cpu.128gib
ARM EC2 2 4 GiB 64 GB GENERAL reserved.arm.2cpu.4gib
ARM EC2 4 8 GiB 128 GB GENERAL reserved.arm.4cpu.8gib
ARM EC2 8 16 GiB 128 GB GENERAL reserved.arm.8cpu.16gib
Linux 2 4 GiB 64 GB GENERAL reserved.x86-64.2cpu.4gib
Linux 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Linux 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib
Linux 16 32 GiB 256GB GENERAL reserved.x86-64.16cpu.32gib
Linux 36 72 GiB 256GB GENERAL reserved.x86-64.36cpu.72gib
Linux 48 96 GiB 512GB GENERAL reserved.x86-64.48cpu.96gib
Linux 72 144 GiB 824 GB GENERAL reserved.x86-64.72cpu.144gib
Linux 96 192 GiB 824 GB GENERAL reserved.x86-64.96cpu.192gib
Linux 72 144 GiB 824 GB (SSD) NVME reserved.x86-64.72cpu.144gib.nvme
Linux EC2 2 4 GiB 64 GB GENERAL reserved.x86-64.2cpu.4gib
Linux EC2 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Linux EC2 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib
Linux GPU 4 16 GiB 235 GB (SSD) NVME reserved.gpu.4cpu.16gib.nvme
Linux GPU 8 32 GiB 435 GB (SSD) NVME reserved.gpu.8cpu.32gib.nvme
Linux GPU 48 192 GiB 3785 GB (SSD) NVME reserved.gpu.48cpu.192gib.nvme
Windows 2 4 GiB 64 GB GENERAL reserved.x86-64.2cpu.4gib
Windows 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Windows 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib
Windows 16 32 GiB 256GB GENERAL reserved.x86-64.16cpu.32gib
Windows 36 72 GiB 256GB GENERAL reserved.x86-64.36cpu.72gib
Windows 48 96 GiB 512GB GENERAL reserved.x86-64.48cpu.96gib
Windows 72 144 GiB 824 GB GENERAL reserved.x86-64.72cpu.144gib
Windows 96 192 GiB 824 GB GENERAL reserved.x86-64.96cpu.192gib
Windows EC2 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Windows EC2 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib

有关定价标识符的更多信息,请参阅 https://aws.amazon.com/codebuild/pricing/

Asia Pacific (Mumbai)
环境类型 vCPU 内存 磁盘空间 计算机类型 计算实例类型
ARM 2 4 GiB 64 GB GENERAL reserved.arm.2cpu.4gib
ARM 4 8 GiB 128 GB GENERAL reserved.arm.4cpu.8gib
ARM 8 16 GiB 128 GB GENERAL reserved.arm.8cpu.16gib
ARM 16 32 GiB 256GB GENERAL reserved.arm.16cpu.32gib
ARM 32 64 GiB 256GB GENERAL reserved.arm.32cpu.64gib
ARM 48 96 GiB 512GB GENERAL reserved.arm.48cpu.96gib
ARM 64 128 GiB 824 GB GENERAL reserved.arm.64cpu.128gib
ARM EC2 2 4 GiB 64 GB GENERAL reserved.arm.2cpu.4gib
ARM EC2 4 8 GiB 128 GB GENERAL reserved.arm.4cpu.8gib
ARM EC2 8 16 GiB 128 GB GENERAL reserved.arm.8cpu.16gib
Linux 2 4 GiB 64 GB GENERAL reserved.x86-64.2cpu.4gib
Linux 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Linux 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib
Linux 16 32 GiB 256GB GENERAL reserved.x86-64.16cpu.32gib
Linux 36 72 GiB 256GB GENERAL reserved.x86-64.36cpu.72gib
Linux 48 96 GiB 512GB GENERAL reserved.x86-64.48cpu.96gib
Linux 72 144 GiB 824 GB GENERAL reserved.x86-64.72cpu.144gib
Linux 96 192 GiB 824 GB GENERAL reserved.x86-64.96cpu.192gib
Linux 72 144 GiB 824 GB (SSD) NVME reserved.x86-64.72cpu.144gib.nvme
Linux EC2 2 4 GiB 64 GB GENERAL reserved.x86-64.2cpu.4gib
Linux EC2 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Linux EC2 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib
Linux GPU 4 16 GiB 235 GB (SSD) NVME reserved.gpu.4cpu.16gib.nvme
Linux GPU 8 32 GiB 435 GB (SSD) NVME reserved.gpu.8cpu.32gib.nvme
Linux GPU 16 64 GiB 585 GB (SSD) NVME reserved.gpu.16cpu.64gib.nvme
Windows 2 4 GiB 64 GB GENERAL reserved.x86-64.2cpu.4gib
Windows 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Windows 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib
Windows 16 32 GiB 256GB GENERAL reserved.x86-64.16cpu.32gib
Windows 36 72 GiB 256GB GENERAL reserved.x86-64.36cpu.72gib
Windows 48 96 GiB 512GB GENERAL reserved.x86-64.48cpu.96gib
Windows 72 144 GiB 824 GB GENERAL reserved.x86-64.72cpu.144gib
Windows 96 192 GiB 824 GB GENERAL reserved.x86-64.96cpu.192gib
Windows EC2 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Windows EC2 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib

有关定价标识符的更多信息,请参阅 https://aws.amazon.com/codebuild/pricing/

Asia Pacific (Singapore)
环境类型 vCPU 内存 磁盘空间 计算机类型 计算实例类型
ARM 2 4 GiB 64 GB GENERAL reserved.arm.2cpu.4gib
ARM 4 8 GiB 128 GB GENERAL reserved.arm.4cpu.8gib
ARM 8 16 GiB 128 GB GENERAL reserved.arm.8cpu.16gib
ARM 16 32 GiB 256GB GENERAL reserved.arm.16cpu.32gib
ARM 32 64 GiB 256GB GENERAL reserved.arm.32cpu.64gib
ARM 48 96 GiB 512GB GENERAL reserved.arm.48cpu.96gib
ARM 64 128 GiB 824 GB GENERAL reserved.arm.64cpu.128gib
ARM EC2 2 4 GiB 64 GB GENERAL reserved.arm.2cpu.4gib
ARM EC2 4 8 GiB 128 GB GENERAL reserved.arm.4cpu.8gib
ARM EC2 8 16 GiB 128 GB GENERAL reserved.arm.8cpu.16gib
Linux 2 4 GiB 64 GB GENERAL reserved.x86-64.2cpu.4gib
Linux 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Linux 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib
Linux 16 32 GiB 256GB GENERAL reserved.x86-64.16cpu.32gib
Linux 36 72 GiB 256GB GENERAL reserved.x86-64.36cpu.72gib
Linux 48 96 GiB 512GB GENERAL reserved.x86-64.48cpu.96gib
Linux 72 144 GiB 824 GB GENERAL reserved.x86-64.72cpu.144gib
Linux 96 192 GiB 824 GB GENERAL reserved.x86-64.96cpu.192gib
Linux 48 96 GiB 824 GB (SSD) NVME reserved.x86-64.48cpu.96gib.nvme
Linux 72 144 GiB 824 GB (SSD) NVME reserved.x86-64.72cpu.144gib.nvme
Linux EC2 2 4 GiB 64 GB GENERAL reserved.x86-64.2cpu.4gib
Linux EC2 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Linux EC2 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib
Windows 2 4 GiB 64 GB GENERAL reserved.x86-64.2cpu.4gib
Windows 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Windows 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib
Windows 16 32 GiB 256GB GENERAL reserved.x86-64.16cpu.32gib
Windows 36 72 GiB 256GB GENERAL reserved.x86-64.36cpu.72gib
Windows 48 96 GiB 512GB GENERAL reserved.x86-64.48cpu.96gib
Windows 72 144 GiB 824 GB GENERAL reserved.x86-64.72cpu.144gib
Windows 96 192 GiB 824 GB GENERAL reserved.x86-64.96cpu.192gib
Windows EC2 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Windows EC2 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib

有关定价标识符的更多信息,请参阅 https://aws.amazon.com/codebuild/pricing/

Asia Pacific (Sydney)
环境类型 vCPU 内存 磁盘空间 计算机类型 计算实例类型
ARM 2 4 GiB 64 GB GENERAL reserved.arm.2cpu.4gib
ARM 4 8 GiB 128 GB GENERAL reserved.arm.4cpu.8gib
ARM 8 16 GiB 128 GB GENERAL reserved.arm.8cpu.16gib
ARM 16 32 GiB 256GB GENERAL reserved.arm.16cpu.32gib
ARM 32 64 GiB 256GB GENERAL reserved.arm.32cpu.64gib
ARM 48 96 GiB 512GB GENERAL reserved.arm.48cpu.96gib
ARM 64 128 GiB 824 GB GENERAL reserved.arm.64cpu.128gib
ARM EC2 2 4 GiB 64 GB GENERAL reserved.arm.2cpu.4gib
ARM EC2 4 8 GiB 128 GB GENERAL reserved.arm.4cpu.8gib
ARM EC2 8 16 GiB 128 GB GENERAL reserved.arm.8cpu.16gib
Linux 2 4 GiB 64 GB GENERAL reserved.x86-64.2cpu.4gib
Linux 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Linux 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib
Linux 16 32 GiB 256GB GENERAL reserved.x86-64.16cpu.32gib
Linux 36 72 GiB 256GB GENERAL reserved.x86-64.36cpu.72gib
Linux 48 96 GiB 512GB GENERAL reserved.x86-64.48cpu.96gib
Linux 72 144 GiB 824 GB GENERAL reserved.x86-64.72cpu.144gib
Linux 96 192 GiB 824 GB GENERAL reserved.x86-64.96cpu.192gib
Linux 72 144 GiB 824 GB (SSD) NVME reserved.x86-64.72cpu.144gib.nvme
Linux EC2 2 4 GiB 64 GB GENERAL reserved.x86-64.2cpu.4gib
Linux EC2 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Linux EC2 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib
Linux GPU 4 16 GiB 235 GB (SSD) NVME reserved.gpu.4cpu.16gib.nvme
Linux GPU 8 32 GiB 435 GB (SSD) NVME reserved.gpu.8cpu.32gib.nvme
Linux GPU 16 64 GiB 585 GB (SSD) NVME reserved.gpu.16cpu.64gib.nvme
Linux GPU 48 192 GiB 3785 GB (SSD) NVME reserved.gpu.48cpu.192gib.nvme
macOS 8 24 GiB 128 GB GENERAL reserved.arm.m2.8cpu.24gib
macOS 12 32 GiB 256GB GENERAL reserved.arm.m2.12cpu.32gib
Windows 2 4 GiB 64 GB GENERAL reserved.x86-64.2cpu.4gib
Windows 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Windows 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib
Windows 16 32 GiB 256GB GENERAL reserved.x86-64.16cpu.32gib
Windows 36 72 GiB 256GB GENERAL reserved.x86-64.36cpu.72gib
Windows 48 96 GiB 512GB GENERAL reserved.x86-64.48cpu.96gib
Windows 72 144 GiB 824 GB GENERAL reserved.x86-64.72cpu.144gib
Windows 96 192 GiB 824 GB GENERAL reserved.x86-64.96cpu.192gib
Windows EC2 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Windows EC2 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib

有关定价标识符的更多信息,请参阅 https://aws.amazon.com/codebuild/pricing/

Europe (Frankfurt)
环境类型 vCPU 内存 磁盘空间 计算机类型 计算实例类型
ARM 2 4 GiB 64 GB GENERAL reserved.arm.2cpu.4gib
ARM 4 8 GiB 128 GB GENERAL reserved.arm.4cpu.8gib
ARM 8 16 GiB 128 GB GENERAL reserved.arm.8cpu.16gib
ARM 16 32 GiB 256GB GENERAL reserved.arm.16cpu.32gib
ARM 32 64 GiB 256GB GENERAL reserved.arm.32cpu.64gib
ARM 48 96 GiB 512GB GENERAL reserved.arm.48cpu.96gib
ARM 64 128 GiB 824 GB GENERAL reserved.arm.64cpu.128gib
ARM EC2 2 4 GiB 64 GB GENERAL reserved.arm.2cpu.4gib
ARM EC2 4 8 GiB 128 GB GENERAL reserved.arm.4cpu.8gib
ARM EC2 8 16 GiB 128 GB GENERAL reserved.arm.8cpu.16gib
Linux 2 4 GiB 64 GB GENERAL reserved.x86-64.2cpu.4gib
Linux 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Linux 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib
Linux 16 32 GiB 256GB GENERAL reserved.x86-64.16cpu.32gib
Linux 36 72 GiB 256GB GENERAL reserved.x86-64.36cpu.72gib
Linux 48 96 GiB 512GB GENERAL reserved.x86-64.48cpu.96gib
Linux 72 144 GiB 824 GB GENERAL reserved.x86-64.72cpu.144gib
Linux 96 192 GiB 824 GB GENERAL reserved.x86-64.96cpu.192gib
Linux 72 144 GiB 824 GB (SSD) NVME reserved.x86-64.72cpu.144gib.nvme
Linux EC2 2 4 GiB 64 GB GENERAL reserved.x86-64.2cpu.4gib
Linux EC2 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Linux EC2 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib
Linux GPU 4 16 GiB 235 GB (SSD) NVME reserved.gpu.4cpu.16gib.nvme
Linux GPU 8 32 GiB 435 GB (SSD) NVME reserved.gpu.8cpu.32gib.nvme
Linux GPU 16 64 GiB 585 GB (SSD) NVME reserved.gpu.16cpu.64gib.nvme
Linux GPU 32 128 GiB 885 GB (SSD) NVME reserved.gpu.32cpu.128gib.nvme
Linux GPU 48 192 GiB 3785 GB (SSD) NVME reserved.gpu.48cpu.192gib.nvme
macOS 8 24 GiB 128 GB GENERAL reserved.arm.m2.8cpu.24gib
Windows 2 4 GiB 64 GB GENERAL reserved.x86-64.2cpu.4gib
Windows 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Windows 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib
Windows 16 32 GiB 256GB GENERAL reserved.x86-64.16cpu.32gib
Windows 36 72 GiB 256GB GENERAL reserved.x86-64.36cpu.72gib
Windows 48 96 GiB 512GB GENERAL reserved.x86-64.48cpu.96gib
Windows 72 144 GiB 824 GB GENERAL reserved.x86-64.72cpu.144gib
Windows 96 192 GiB 824 GB GENERAL reserved.x86-64.96cpu.192gib
Windows EC2 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Windows EC2 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib

有关定价标识符的更多信息,请参阅 https://aws.amazon.com/codebuild/pricing/

Europe (Ireland)
环境类型 vCPU 内存 磁盘空间 计算机类型 计算实例类型
ARM 2 4 GiB 64 GB GENERAL reserved.arm.2cpu.4gib
ARM 4 8 GiB 128 GB GENERAL reserved.arm.4cpu.8gib
ARM 8 16 GiB 128 GB GENERAL reserved.arm.8cpu.16gib
ARM 16 32 GiB 256GB GENERAL reserved.arm.16cpu.32gib
ARM 32 64 GiB 256GB GENERAL reserved.arm.32cpu.64gib
ARM 48 96 GiB 512GB GENERAL reserved.arm.48cpu.96gib
ARM 64 128 GiB 824 GB GENERAL reserved.arm.64cpu.128gib
ARM EC2 2 4 GiB 64 GB GENERAL reserved.arm.2cpu.4gib
ARM EC2 4 8 GiB 128 GB GENERAL reserved.arm.4cpu.8gib
ARM EC2 8 16 GiB 128 GB GENERAL reserved.arm.8cpu.16gib
Linux 2 4 GiB 64 GB GENERAL reserved.x86-64.2cpu.4gib
Linux 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Linux 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib
Linux 16 32 GiB 256GB GENERAL reserved.x86-64.16cpu.32gib
Linux 36 72 GiB 256GB GENERAL reserved.x86-64.36cpu.72gib
Linux 48 96 GiB 512GB GENERAL reserved.x86-64.48cpu.96gib
Linux 72 144 GiB 824 GB GENERAL reserved.x86-64.72cpu.144gib
Linux 96 192 GiB 824 GB GENERAL reserved.x86-64.96cpu.192gib
Linux 48 96 GiB 824 GB (SSD) NVME reserved.x86-64.48cpu.96gib.nvme
Linux 72 144 GiB 824 GB (SSD) NVME reserved.x86-64.72cpu.144gib.nvme
Linux EC2 2 4 GiB 64 GB GENERAL reserved.x86-64.2cpu.4gib
Linux EC2 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Linux EC2 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib
Linux GPU 4 16 GiB 235 GB (SSD) NVME reserved.gpu.4cpu.16gib.nvme
Linux GPU 8 32 GiB 435 GB (SSD) NVME reserved.gpu.8cpu.32gib.nvme
Linux GPU 16 64 GiB 585 GB (SSD) NVME reserved.gpu.16cpu.64gib.nvme
Linux GPU 32 128 GiB 885 GB (SSD) NVME reserved.gpu.32cpu.128gib.nvme
Linux GPU 48 192 GiB 3785 GB (SSD) NVME reserved.gpu.48cpu.192gib.nvme
Windows 2 4 GiB 64 GB GENERAL reserved.x86-64.2cpu.4gib
Windows 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Windows 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib
Windows 16 32 GiB 256GB GENERAL reserved.x86-64.16cpu.32gib
Windows 36 72 GiB 256GB GENERAL reserved.x86-64.36cpu.72gib
Windows 48 96 GiB 512GB GENERAL reserved.x86-64.48cpu.96gib
Windows 72 144 GiB 824 GB GENERAL reserved.x86-64.72cpu.144gib
Windows 96 192 GiB 824 GB GENERAL reserved.x86-64.96cpu.192gib
Windows EC2 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Windows EC2 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib

有关定价标识符的更多信息,请参阅 https://aws.amazon.com/codebuild/pricing/

South America (São Paulo)
环境类型 vCPU 内存 磁盘空间 计算机类型 计算实例类型
ARM 2 4 GiB 64 GB GENERAL reserved.arm.2cpu.4gib
ARM 4 8 GiB 128 GB GENERAL reserved.arm.4cpu.8gib
ARM 8 16 GiB 128 GB GENERAL reserved.arm.8cpu.16gib
ARM 16 32 GiB 256GB GENERAL reserved.arm.16cpu.32gib
ARM 32 64 GiB 256GB GENERAL reserved.arm.32cpu.64gib
ARM 48 96 GiB 512GB GENERAL reserved.arm.48cpu.96gib
ARM EC2 2 4 GiB 64 GB GENERAL reserved.arm.2cpu.4gib
ARM EC2 4 8 GiB 128 GB GENERAL reserved.arm.4cpu.8gib
ARM EC2 8 16 GiB 128 GB GENERAL reserved.arm.8cpu.16gib
Linux 2 4 GiB 64 GB GENERAL reserved.x86-64.2cpu.4gib
Linux 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Linux 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib
Linux 16 32 GiB 256GB GENERAL reserved.x86-64.16cpu.32gib
Linux 36 72 GiB 256GB GENERAL reserved.x86-64.36cpu.72gib
Linux 48 96 GiB 512GB GENERAL reserved.x86-64.48cpu.96gib
Linux 72 144 GiB 824 GB GENERAL reserved.x86-64.72cpu.144gib
Linux 72 144 GiB 824 GB (SSD) NVME reserved.x86-64.72cpu.144gib.nvme
Linux EC2 2 4 GiB 64 GB GENERAL reserved.x86-64.2cpu.4gib
Linux EC2 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Linux EC2 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib
Windows 2 4 GiB 64 GB GENERAL reserved.x86-64.2cpu.4gib
Windows 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Windows 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib
Windows 16 32 GiB 256GB GENERAL reserved.x86-64.16cpu.32gib
Windows 36 72 GiB 256GB GENERAL reserved.x86-64.36cpu.72gib
Windows 48 96 GiB 512GB GENERAL reserved.x86-64.48cpu.96gib
Windows 72 144 GiB 824 GB GENERAL reserved.x86-64.72cpu.144gib
Windows EC2 4 8 GiB 128 GB GENERAL reserved.x86-64.4cpu.8gib
Windows EC2 8 16 GiB 128 GB GENERAL reserved.x86-64.8cpu.16gib

有关定价标识符的更多信息,请参阅 https://aws.amazon.com/codebuild/pricing/

选择计算类型:

  • 在 CodeBuild 控制台的计算实例集配置页面中,从 vCPU内存磁盘中选择一个选项。有关更多信息,请参阅 创建预留容量实例集

  • 对于 AWS CLI,运行 create-fleetupdate-fleet 命令,同时将 computeType 的值指定为 ATTRIBUTE_BASED_COMPUTE。有关更多信息,请参阅 create-fleetupdate-fleet

  • 对于 AWS SDK,请为目标编程语言调用等效于 CreateFleetUpdateFleet 的操作,同时将 computeType 的值指定为 ATTRIBUTE_BASED_COMPUTE。有关更多信息,请参阅AWS 开发工具包和工具参考

注意

对于 AWS CLI 和 AWS SDK,您仍然可以使用诸如 BUILD_GENERAL1_SMALL 之类的 computeType 输入来选择计算类型,而不是 ATTRIBUTE_BASED_COMPUTE。有关更多信息,请参阅 关于按需环境类型

支持的实例系列

AWS CodeBuild 对预留容量实例集支持以下实例:

  • 通用型:M5 | M5a | M5ad | M5d | M5dn | M5n | M5zn | M6a | M6g | M6gd | M6i | M6id | M6idn | M6in | M7a | M7g | M7gd | M7i | M7i-flex | M8g | T3 | T3a | T4g

  • 计算优化型:C5 | C5a | C5ad | C5d | C5n | C6a | C6g | C6gd | C6gn | C6i | C6id | C6in | C7a | C7g | C7gd | C7gn | C7i | C7i-flex | C8g

  • 内存优化型:R5 | R5a | R5ad | R5b | R5d | R5dn | R5n | R6a | R6g | R6gd | R6i | R6idn | R6in | R6id | R7a | R7g | R7gd | R7i | R7iz | R8g | U-3tb1 | U-6tb1 | U-9tb1 | U-12tb1 | U-18tb1 | U-24tb1 | U7i-6tb | U7i-8tb | U7i-12tb | U7in-16tb | U7in-24tb | U7in-32tb | X1 | X1e | X2gd | X2idn | X2iedn | X2iezn | X8g | z1d

  • 存储优化型:D3 | D3en | I3 | I3en | I4g | I4i | I7ie | I8g | Im4gn | Is4gen

  • 加速计算型:DL1 | DL2q | F1 | F2 | G4ad | G4dn | G5 | G5g | G6 | G6e | Gr6 | Inf1 | Inf2 | P3 | P3dn | P4d | P5 | P5e | P5en | Trn1 | Trn1n | Trn2 | VT1

  • 高性能计算:Hpc6a | Hpc6id | Hpc7a | Hpc7g

  • 上一代实例:A1

要创建具有特定实例类型的预留容量实例集:

  • 在 CodeBuild 控制台的计算实例集配置页面中,导航到容量配置部分。在计算选择模式下,选择手动输入,并在计算实例类型中,从下拉菜单中选择一种实例类型。有关更多信息,请参阅 创建预留容量实例集

  • 对于 AWS CLI,运行 create-fleetupdate-fleet 命令,将 computeType 的值指定为 CUSTOM_INSTANCE_TYPE,并将 ComputeConfiguration instanceType 指定为指定的实例类型。有关更多信息,请参阅 create-fleetupdate-fleet

  • 对于 AWS SDK,请为目标编程语言调用等效于 CreateFleetUpdateFleet 的操作,将 computeType 的值指定为 CUSTOM_INSTANCE_TYPE,并将 ComputeConfiguration instanceType 指定为指定的实例类型。有关更多信息,请参阅AWS 开发工具包和工具参考

关于按需环境类型

AWS CodeBuild 为构建环境提供了以下可用内存、vCPU 和磁盘空间来运行 EC2 计算模式:

计算类型 环境 computeType 值 环境类型值 内存 vCPU 磁盘空间
ARM Small ¹ BUILD_GENERAL1_SMALL

ARM_CONTAINER

ARM_EC2

4 GiB 2 64 GB
ARM Medium ¹ BUILD_GENERAL1_MEDIUM

ARM_CONTAINER

ARM_EC2

8 GiB 4 128 GB
ARM Large ¹ BUILD_GENERAL1_LARGE

ARM_CONTAINER

ARM_EC2

16 GiB 8 128 GB
ARM XLarge ¹ BUILD_GENERAL1_XLARGE ARM_CONTAINER 64 GiB 32 256GB
ARM 2XLarge ¹ BUILD_GENERAL1_2XLARGE ARM_CONTAINER 96 GiB 48 824 GB
小型 Linux¹ BUILD_GENERAL1_SMALL

LINUX_CONTAINER

LINUX_EC2

4 GiB 2 64 GB
中型 Linux¹ BUILD_GENERAL1_MEDIUM

LINUX_CONTAINER

LINUX_EC2

8 GiB 4 128 GB
大型 Linux¹ BUILD_GENERAL1_LARGE

LINUX_CONTAINER

LINUX_EC2

16 GiB 8 128 GB
Linux XLarge ¹ BUILD_GENERAL1_XLARGE LINUX_CONTAINER 72 GiB 36 256GB
Linux 2XLarge BUILD_GENERAL1_2XLARGE LINUX_CONTAINER 144 GiB 72 824 GB (SSD)
小型 Linux GPU BUILD_GENERAL1_SMALL LINUX_GPU_CONTAINER 16 GiB 4 235 GB (SSD)
大型 Linux GPU BUILD_GENERAL1_LARGE LINUX_GPU_CONTAINER 255 GiB 32 50 GB
Windows Medium ¹ BUILD_GENERAL1_MEDIUM

WINDOWS_SERVER_2019_CONTAINER

WINDOWS_SERVER_2022_CONTAINER

WINDOWS_EC2

8 GiB 4 128 GB
Windows Large ¹ BUILD_GENERAL1_LARGE

WINDOWS_SERVER_2019_CONTAINER

WINDOWS_SERVER_2022_CONTAINER

WINDOWS_EC2

16 GiB 8 128 GB
Windows XLarge ¹ BUILD_GENERAL1_XLARGE

WINDOWS_SERVER_2022_CONTAINER

72 GiB 36 256GB
Windows 2XLarge ¹ BUILD_GENERAL1_2XLARGE

WINDOWS_SERVER_2022_CONTAINER

144 GiB 72 824 GB

¹缓存该映像类型的最新版本。如果您指定了更具体的版本,则 CodeBuild 会预置该版本,而不是缓存版本。这可能会导致构建时间更长。例如,要受益于缓存,请指定 aws/codebuild/amazonlinux-x86_64-standard:5.0 而不是更精细的版本,例如 aws/codebuild/amazonlinux-x86_64-standard:5.0-1.0.0

AWS CodeBuild 为构建环境提供了以下可用内存和磁盘空间来运行 AWS Lambda 计算模式:

计算类型 环境 computeType 值 环境类型值 内存 磁盘空间
ARM Lambda 1GB BUILD_LAMBDA_1GB ARM_LAMBDA_CONTAINER 1 GiB 10 GB
ARM Lambda 2GB BUILD_LAMBDA_2GB ARM_LAMBDA_CONTAINER 2 GiB 10 GB
ARM Lambda 4GB BUILD_LAMBDA_4GB ARM_LAMBDA_CONTAINER 4 GiB 10 GB
ARM Lambda 8GB BUILD_LAMBDA_8GB ARM_LAMBDA_CONTAINER 8 GiB 10 GB
ARM Lambda 10GB BUILD_LAMBDA_10GB ARM_LAMBDA_CONTAINER 10 GiB 10 GB
Linux Lambda 1GB BUILD_LAMBDA_1GB LINUX_LAMBDA_CONTAINER 1 GiB 10 GB
Linux Lambda 2GB BUILD_LAMBDA_2GB LINUX_LAMBDA_CONTAINER 2 GiB 10 GB
Linux Lambda 4GB BUILD_LAMBDA_4GB LINUX_LAMBDA_CONTAINER 4 GiB 10 GB
Linux Lambda 8GB BUILD_LAMBDA_8GB LINUX_LAMBDA_CONTAINER 8 GiB 10 GB
Linux Lambda 10GB BUILD_LAMBDA_10GB LINUX_LAMBDA_CONTAINER 10 GiB 10 GB

使用其他环境类型时,建议您使用缓存的映像来缩短构建时间。

为每个构建环境列出的磁盘空间仅在 CODEBUILD_SRC_DIR 环境变量指定的目录中可用。

选择计算类型:

某些环境和计算类型存在区域可用性限制:

  • 计算类型 Linux GPU 小型 (LINUX_GPU_CONTAINER) 仅在以下区域可用:

    • 美国东部(弗吉尼亚州北部)

    • 美国西部(俄勒冈)

    • 亚太地区(东京)

    • 加拿大(中部)

    • 欧洲地区(法兰克福)

    • 欧洲地区(爱尔兰)

    • 欧洲地区(伦敦)

  • 计算类型 Linux GPU 大型 (LINUX_GPU_CONTAINER) 仅在以下区域可用:

    • 美国东部(俄亥俄州)

    • 美国东部(弗吉尼亚州北部)

    • 美国西部(俄勒冈州)

    • 亚太地区(首尔)

    • 亚太地区(悉尼)

    • 亚太地区(东京)

    • 加拿大(中部)

    • 中国(北京)

    • 中国(宁夏)

    • 欧洲地区(法兰克福)

    • 欧洲地区(爱尔兰)

    • 欧洲地区(伦敦)

  • 计算类型 BUILD_GENERAL1_2XLARGE 仅在以下区域可用:

    • 美国东部(俄亥俄州)

    • 美国东部(弗吉尼亚州北部)

    • 美国西部(加利福尼亚北部)

    • 美国西部(俄勒冈州)

    • 亚太地区(海得拉巴)

    • 亚太地区(香港)

    • 亚太地区(雅加达)

    • 亚太地区(墨尔本)

    • 亚太地区(孟买)

    • 亚太地区(首尔)

    • 亚太地区(新加坡)

    • 亚太地区(悉尼)

    • 亚太地区(东京)

    • 加拿大(中部)

    • 中国(北京)

    • 中国(宁夏)

    • 欧洲地区(法兰克福)

    • 欧洲地区(爱尔兰)

    • 欧洲地区(伦敦)

    • 欧洲地区(巴黎)

    • 欧洲地区(西班牙)

    • 欧洲地区(斯德哥尔摩)

    • 欧洲(苏黎世)

    • 以色列(特拉维夫)

    • 中东(巴林)

    • 中东(阿联酋)

    • 南美洲(圣保罗)

  • 环境类型 ARM_CONTAINER 仅在以下区域可用:

    • 美国东部(俄亥俄州)

    • 美国东部(弗吉尼亚州北部)

    • 美国西部(加利福尼亚北部)

    • 美国西部(俄勒冈州)

    • 亚太地区(香港)

    • 亚太地区(雅加达)

    • 亚太地区(海得拉巴)

    • 亚太地区(孟买)

    • 亚太地区(大阪)

    • 亚太地区(首尔)

    • 亚太地区(新加坡)

    • 亚太地区(悉尼)

    • 亚太地区(东京)

    • 加拿大(中部)

    • 中国(北京)

    • 中国(宁夏)

    • 欧洲地区(法兰克福)

    • 欧洲地区(爱尔兰)

    • 欧洲地区(伦敦)

    • 欧洲地区(米兰)

    • 欧洲地区(巴黎)

    • 欧洲地区(西班牙)

    • 欧洲地区(斯德哥尔摩)

    • 以色列(特拉维夫)

    • 中东(巴林)

    • 中东(阿联酋)

    • 南美洲(圣保罗)

  • 环境类型 WINDOWS_SERVER_2022_CONTAINER 仅在以下区域可用:

    • 美国东部(俄亥俄州)

    • 美国东部(弗吉尼亚州北部)

    • 美国西部(俄勒冈州)

    • 亚太地区(悉尼)

    • 亚太地区(东京)

    • 欧洲地区(法兰克福)

    • 欧洲地区(爱尔兰)

    • 南美洲(圣保罗)

  • 环境类型 LINUX_EC2BUILD_GENERAL1_SMALLBUILD_GENERAL1_MEDIUMBUILD_GENERAL1_LARGE)仅在以下区域可用:

    • 美国东部(俄亥俄州)

    • 美国东部(弗吉尼亚州北部)

    • 美国西部(加利福尼亚北部)

    • 美国西部(俄勒冈州)

    • 非洲(开普敦)

    • 亚太地区(香港)

    • 亚太地区(雅加达)

    • 亚太地区(墨尔本)

    • 欧洲(苏黎世)

    • 亚太地区(海得拉巴)

    • 亚太地区(孟买)

    • 亚太地区(大阪)

    • 亚太地区(首尔)

    • 亚太地区(新加坡)

    • 亚太地区(悉尼)

    • 亚太地区(东京)

    • 加拿大(中部)

    • 中国(北京)

    • 中国(宁夏)

    • 欧洲地区(法兰克福)

    • 欧洲地区(爱尔兰)

    • 欧洲地区(伦敦)

    • 欧洲地区(米兰)

    • 欧洲地区(巴黎)

    • 欧洲地区(西班牙)

    • 欧洲地区(斯德哥尔摩)

    • 以色列(特拉维夫)

    • 中东(巴林)

    • 中东(阿联酋)

    • 南美洲(圣保罗)

    • AWS GovCloud(美国西部)

    • AWS GovCloud(美国东部)

  • 环境类型 ARM_EC2BUILD_GENERAL1_SMALLBUILD_GENERAL1_MEDIUMBUILD_GENERAL1_LARGE)仅在以下区域可用:

    • 美国东部(俄亥俄州)

    • 美国东部(弗吉尼亚州北部)

    • 美国西部(加利福尼亚北部)

    • 美国西部(俄勒冈州)

    • 亚太地区(香港)

    • 亚太地区(雅加达)

    • 欧洲(苏黎世)

    • 亚太地区(海得拉巴)

    • 亚太地区(孟买)

    • 亚太地区(大阪)

    • 亚太地区(首尔)

    • 亚太地区(新加坡)

    • 亚太地区(悉尼)

    • 亚太地区(东京)

    • 加拿大(中部)

    • 中国(北京)

    • 中国(宁夏)

    • 欧洲地区(法兰克福)

    • 欧洲地区(爱尔兰)

    • 欧洲地区(伦敦)

    • 欧洲地区(米兰)

    • 欧洲地区(巴黎)

    • 欧洲地区(西班牙)

    • 欧洲地区(斯德哥尔摩)

    • 以色列(特拉维夫)

    • 中东(巴林)

    • 南美洲(圣保罗)

    • AWS GovCloud(美国西部)

    • AWS GovCloud(美国东部)

  • 环境类型 WINDOWS_EC2BUILD_GENERAL1_MEDIUMBUILD_GENERAL1_LARGE)仅在以下区域可用:

    • 美国东部(俄亥俄州)

    • 美国东部(弗吉尼亚州北部)

    • 美国西部(俄勒冈州)

    • 亚太地区(悉尼)

    • 亚太地区(东京)

    • 欧洲地区(法兰克福)

    • 欧洲地区(爱尔兰)

    • 南美洲(圣保罗)

  • 计算模式 AWS Lambda(ARM_LAMBDA_CONTAINERLINUX_LAMBDA_CONTAINER)仅在以下区域可用:

    • 美国东部(弗吉尼亚州北部)

    • 美国东部(俄亥俄州)

    • 美国西部(俄勒冈州)

    • 亚太地区(孟买)

    • 亚太地区(新加坡)

    • 亚太地区(悉尼)

    • 亚太地区(东京)

    • 欧洲地区(法兰克福)

    • 欧洲地区(爱尔兰)

    • 南美洲(圣保罗)

  • 计算模式 MAC_ARM 仅在以下区域可用:

    • 美国东部(弗吉尼亚州北部)

    • 美国东部(俄亥俄州)

    • 美国西部(俄勒冈州)

    • 亚太地区(悉尼)

    • 欧洲地区(法兰克福)

对于计算类型 BUILD_GENERAL1_2XLARGE,支持高达 100 GB 的未压缩 Docker 映像。

注意

对于自定义构建环境映像,CodeBuild 在 Linux 和 Windows 中支持高达 50 GB 的未压缩的 Docker 映像,无论计算类型如何。要检查构建映像的大小,请使用 Docker 运行 docker images REPOSITORY:TAG 命令。

您可以使用 Amazon EFS 在构建容器中访问更多空间。有关更多信息,请参阅适用于 AWS CodeBuild 的 Amazon Elastic File System 示例。如果您希望在构建期间操作容器磁盘空间,则构建必须运行在特权模式下。

注意

默认情况下,为非 VPC 构建启用 Docker 进程守护程序。如果您想使用 Docker 容器进行 VPC 构建,请参阅 Docker 文档网站上的运行时权限和 Linux 功能并启用特权模式。此外,Windows 不支持特权模式。