InstanceRequirements
Specifies the requirements for EC2 instances that will be launched by the capacity provider, including architectures and instance type constraints.
Syntax
To declare this entity in your Amazon Serverless Application Model (Amazon SAM) template, use the following syntax.
YAML
Architectures:ListAllowedTypes:ListExcludedTypes:List
Note
You can choose to specify either AllowedTypes or ExcludedTypes when defining instance requirements for your capacity provider, but not both.
Properties
-
Architectures -
The instruction set architectures for the capacity provider instances.
Valid values:
x86_64orarm64Type: List
Required: No
Default:
x86_64Amazon CloudFormation compatibility: This property is passed directly to the
Architecturesproperty of anAWS::Lambda::CapacityProviderresource. -
AllowedTypes -
A list of allowed EC2 instance types for the capacity provider instance.
Type: List
Required: No
Amazon CloudFormation compatibility: This property is passed directly to the
AllowedInstanceTypesproperty of anAWS::Lambda::CapacityProviderresource. -
ExcludedTypes -
A list of EC2 instance types to exclude from the capacity provider.
Type: List
Required: No
Amazon CloudFormation compatibility: This property is passed directly to the
ExcludedInstanceTypesproperty of anAWS::Lambda::CapacityProviderresource.
Examples
Instance requirements configuration
The following example shows instance requirements with specific architecture and instance type constraints.
InstanceRequirements: Architectures: - x86_64 ExcludedTypes: - t2.micro