-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
feat: Add support for creating efa-only
network interfaces
#3196
Conversation
f4b0228
to
6f02268
Compare
waiting for 2x |
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" |
There was a problem hiding this comment.
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. :)
There was a problem hiding this comment.
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 😅
## [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))
This PR is included in version 20.28.0 🎉 |
Description
efa-only
network interfacesMotivation and Context
efa-only
interface types hashicorp/terraform-provider-aws#39882Breaking Changes
How Has This Been Tested?
examples/*
to demonstrate and validate my change(s)examples/*
projectspre-commit run -a
on my pull request