AWS::Lambda::CapacityProvider InstanceRequirements - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

This is the new Amazon CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the Amazon 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 Amazon 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