AWS::Lambda::CapacityProvider InstanceRequirements - AWS CloudFormation

This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.

AWS::Lambda::CapacityProvider InstanceRequirements

Specifications that define the characteristics and constraints for compute instances used by the capacity provider.

Syntax

To declare this entity in your CloudFormation template, use the following syntax:

JSON

{ "AllowedInstanceTypes" : [ String, ... ], "Architectures" : [ String, ... ], "ExcludedInstanceTypes" : [ String, ... ] }

YAML

AllowedInstanceTypes: - String Architectures: - String ExcludedInstanceTypes: - String

Properties

AllowedInstanceTypes

A list of EC2 instance types that the capacity provider is allowed to use. If not specified, all compatible instance types are allowed.

Required: No

Type: Array of String

Minimum: 1 | 0

Maximum: 30 | 400

Update requires: Replacement

Architectures

A list of supported CPU architectures for compute instances. Valid values include x86_64 and arm64.

Required: No

Type: Array of String

Minimum: 1

Maximum: 1

Update requires: Replacement

ExcludedInstanceTypes

A list of EC2 instance types that the capacity provider should not use, even if they meet other requirements.

Required: No

Type: Array of String

Minimum: 1 | 0

Maximum: 30 | 400

Update requires: Replacement

Examples

Instance requirement configuration

Configure instance types and architecture.

YAML

InstanceRequirements: AllowedInstanceTypes: - c5.4xlarge ExcludedInstanceTypes: - r6g.xlarge Architecture: - x86_64