Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cmd/lambda/ec2ops.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,9 @@ func (h *Handler) releaseEIPs(ctx context.Context, eips []ec2types.Address) {

// --- ENI helper ---

// getPublicENI returns the primary network interface (device index 0).
// For NAT instances launched via our templates, this is the public-facing ENI
// where the Elastic IP should be attached.
func getPublicENI(inst *Instance) *ec2types.InstanceNetworkInterface {
for i := range inst.NetworkInterfaces {
if aws.ToInt32(inst.NetworkInterfaces[i].Attachment.DeviceIndex) == 0 {
Expand Down
Loading