Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add support for creating efa-only network interfaces #3196

Merged

Conversation

bryantbiggs
Copy link
Member

@bryantbiggs bryantbiggs commented Nov 1, 2024

Description

  • Add support for creating efa-only network interfaces
  • Update tests to default to AL2023

Motivation and Context

Breaking Changes

  • No

How Has This Been Tested?

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

@bryantbiggs
Copy link
Member Author

bryantbiggs commented Nov 1, 2024

waiting for 2x p5e.48xlarge instances to come available to do final evaluation

@bryantbiggs
Copy link
Member Author

image

@bryantbiggs bryantbiggs marked this pull request as ready for review November 2, 2024 13:18
efa_network_interfaces = [
for i in range(local.num_network_cards) : {
associate_public_ip_address = false
delete_on_termination = true
device_index = i == 0 ? 0 : 1
network_card_index = i
interface_type = "efa"
interface_type = var.enable_efa_only ? contains(concat([0], var.efa_indices), i) ? "efa" : "efa-only" : "efa"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

contains(concat([0], var.efa_indices), i) looks almost like magic but I guess it works as expected. :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ya, hopefully on the next breaking change some of this can be simplified by changing the defaults 😅

@bryantbiggs bryantbiggs merged commit c6da22c into terraform-aws-modules:master Nov 2, 2024
18 checks passed
@bryantbiggs bryantbiggs deleted the feat/efa-only branch November 2, 2024 13:33
antonbabenko pushed a commit that referenced this pull request Nov 2, 2024
## [20.28.0](v20.27.0...v20.28.0) (2024-11-02)

### Features

* Add support for creating `efa-only` network interfaces ([#3196](#3196)) ([c6da22c](c6da22c))
@antonbabenko
Copy link
Member

This PR is included in version 20.28.0 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants