ComputeConfiguration Struct
The compute configuration for the fleet.
Example
ts
import { Size } from 'aws-cdk-lib';
const fleet = new codebuild.Fleet(this, 'MyFleet', {
baseCapacity: 1,
computeType: codebuild.FleetComputeType.ATTRIBUTE_BASED,
environmentType: codebuild.EnvironmentType.LINUX_CONTAINER,
computeConfiguration: {
vCpu: 2,
memory: Size.gibibytes(4),
disk: Size.gibibytes(10),
machineType: codebuild.MachineType.GENERAL,
},
});
Properties
When using ATTRIBUTE_BASED, the amount of disk space of the instance type included in your fleet.
Default: No requirement, the actual value will be based on the other selected configuration properties
When using CUSTOM_INSTANCE_TYPE, the additional amount of disk space to provision over the 64GB included by default.
instanceTypeoptionalInstanceTypeinstance_typeoptionalInstanceTypeinstanceTypeoptionalInstanceTypeInstanceTypeoptionalInstanceTypeInstanceTypeoptionalInstanceType= none#When using CUSTOM_INSTANCE_TYPE, the EC2 instance type to use for fleet instances.
Not all instance types are supported by CodeBuild. If you use a disallowed type, the CloudFormation deployment will fail.
machineTypeoptionalMachineTypemachine_typeoptionalMachineTypemachineTypeoptionalMachineTypeMachineTypeoptionalMachineTypeMachineTypeoptionalMachineType#When using ATTRIBUTE_BASED, the machine type of the instance type included in your fleet.
Default: No requirement, the actual value will be based on the other selected configuration properties
When using ATTRIBUTE_BASED, the amount of memory of the instance type included in your fleet.
Default: No requirement, the actual value will be based on the other selected configuration properties
When using ATTRIBUTE_BASED, the number of vCPUs of the instance type included in your fleet.
Default: No requirement, the actual value will be based on the other selected configuration properties