Skip to content

[Enhancement]: Allow Capacity Block for EKS Managed Node Groups #40876

Closed
@thomas-stone

Description

Description

Using Version 5.35.0

EKS Managed Node Groups support using capacity_type: "CAPACITY_BLOCK", however the aws_eks_node_group resource expects it to be either ["ON_DEMAND" "SPOT"].

Error: expected capacity_type to be one of ["ON_DEMAND" "SPOT"], got CAPACITY_BLOCK

https://docs.aws.amazon.com/eks/latest/userguide/capacity-blocks.html#capacity-blocks-procedure
https://aws-ia.github.io/terraform-aws-eks-blueprints/patterns/machine-learning/ml-capacity-block/#code

When creating the Capacity Block managed node group, do the following:
Set the capacity-type to "CAPACITY_BLOCK". If the capacity type isn’t set to "CAPACITY_BLOCK" or any of the other above required launch template values are missing, then the create request will be rejected.

Affected Resource(s) and/or Data Source(s)

aws_eks_node_group

Potential Terraform Configuration

No response

References

https://docs.aws.amazon.com/eks/latest/userguide/capacity-blocks.html#capacity-blocks-procedure
https://aws-ia.github.io/terraform-aws-eks-blueprints/patterns/machine-learning/ml-capacity-block/#code

Would you like to implement a fix?

None

Metadata

Assignees

No one assigned

    Labels

    enhancementRequests to existing resources that expand the functionality or scope.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions