Skip to content

Commit

Permalink
Add trn1.32xlarge EFA network interface configuration to eksapi templ…
Browse files Browse the repository at this point in the history
…ate (#522)
  • Loading branch information
mattcjo authored Dec 14, 2024
1 parent a55aaac commit c6bee21
Showing 1 changed file with 53 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ Conditions:
!Equals [Ref: InstanceType, p4d.24xlarge]
IsP5Node:
!Equals [Ref: InstanceType, p5.48xlarge]
IsTRN1Node:
!Equals [Ref: InstanceType, trn1.32xlarge]
IsCapacityReservationIdSet:
!Not [!Equals [!Ref CapacityReservationId, ""]]
IsUserDataMIMEPart:
Expand Down Expand Up @@ -458,6 +460,57 @@ Resources:
InterfaceType: efa
Groups:
- !Ref EFASecurityGroup
!If
- IsTRN1Node
-
- Description: NetworkInterfaces Configuration For EFA and EKS
NetworkCardIndex: 0
DeviceIndex: 0
InterfaceType: efa
Groups:
- !Ref EFASecurityGroup
- Description: NetworkInterfaces Configuration For EFA and EKS
NetworkCardIndex: 1
DeviceIndex: 1
InterfaceType: efa
Groups:
- !Ref EFASecurityGroup
- Description: NetworkInterfaces Configuration For EFA and EKS
NetworkCardIndex: 2
DeviceIndex: 2
InterfaceType: efa
Groups:
- !Ref EFASecurityGroup
- Description: NetworkInterfaces Configuration For EFA and EKS
NetworkCardIndex: 3
DeviceIndex: 3
InterfaceType: efa
Groups:
- !Ref EFASecurityGroup
- Description: NetworkInterfaces Configuration For EFA and EKS
NetworkCardIndex: 4
DeviceIndex: 4
InterfaceType: efa
Groups:
- !Ref EFASecurityGroup
- Description: NetworkInterfaces Configuration For EFA and EKS
NetworkCardIndex: 5
DeviceIndex: 5
InterfaceType: efa
Groups:
- !Ref EFASecurityGroup
- Description: NetworkInterfaces Configuration For EFA and EKS
NetworkCardIndex: 6
DeviceIndex: 6
InterfaceType: efa
Groups:
- !Ref EFASecurityGroup
- Description: NetworkInterfaces Configuration For EFA and EKS
NetworkCardIndex: 7
DeviceIndex: 7
InterfaceType: efa
Groups:
- !Ref EFASecurityGroup
UserData:
Fn::Base64:
Fn::If:
Expand Down

0 comments on commit c6bee21

Please sign in to comment.