@@ -78,9 +78,9 @@ type MNG struct {
7878 ReleaseVersionValue float64 `json:"release-version-value" read-only:"true"`
7979
8080 // AMIType is the AMI type for the node group.
81- // Allowed values are AL2_x86_64 and AL2_x86_64_GPU .
81+ // Allowed values are AL2_x86_64, AL2_x86_64_GPU and AL2_ARM_64 .
8282 // ref. https://docs.aws.amazon.com/eks/latest/userguide/create-managed-node-group.html
83- // ref. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-nodegroup.html
83+ // ref. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-nodegroup.html#cfn-eks-nodegroup-amitype
8484 AMIType string `json:"ami-type,omitempty"`
8585
8686 // InstanceTypes is the EC2 instance types for the node instances.
@@ -404,6 +404,10 @@ func (cfg *Config) validateAddOnManagedNodeGroups() error {
404404 if cur .RemoteAccessUserName != "ec2-user" {
405405 return fmt .Errorf ("AMIType %q but unexpected RemoteAccessUserName %q" , cur .AMIType , cur .RemoteAccessUserName )
406406 }
407+ case eks .AMITypesAl2Arm64 :
408+ if cur .RemoteAccessUserName != "ec2-user" {
409+ return fmt .Errorf ("AMIType %q but unexpected RemoteAccessUserName %q" , cur .AMIType , cur .RemoteAccessUserName )
410+ }
407411 default :
408412 return fmt .Errorf ("unknown ASGs[%q].AMIType %q" , k , cur .AMIType )
409413 }
@@ -417,6 +421,10 @@ func (cfg *Config) validateAddOnManagedNodeGroups() error {
417421 if len (cur .InstanceTypes ) == 0 {
418422 cur .InstanceTypes = []string {DefaultNodeInstanceTypeGPU }
419423 }
424+ case eks .AMITypesAl2Arm64 :
425+ if len (cur .InstanceTypes ) == 0 {
426+ cur .InstanceTypes = []string {DefaultNodeInstanceTypeARMCPU }
427+ }
420428 default :
421429 return fmt .Errorf ("unknown AddOnManagedNodeGroups.MNGs[%q].AMIType %q" , k , cur .AMIType )
422430 }
0 commit comments