-
Notifications
You must be signed in to change notification settings - Fork 9.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
network_card_index support in aws_instance and aws_network_interface_attachment #24043
Comments
|
Relates: #21147. |
@ewbankkit yes, I'm aware of that, the missing attribute is network_card_index. This is not the same as device_index |
This functionality has been released in v4.11.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
When using network_interface block in aws_spot_instance_request i'm now getting the error:
I'm not sure how to work around the issue. Seems related to boto/boto3#2897 (comment) |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Description
Missing network_card_index attribute in network_interface block. This is needed in order to create ec2 nodes that have more than 1 network card (dl1.24xlarge). Due to the fact that you can not attach more than 1 EFA on a single network card - it is impossible to create an ec2 from dl1.24xlarge type with 4 EFA adapters attached using aws_instance. The only workaround for this is to create aws_launch_template, where network_card_index is supported in the network_interface block
New or Affected Resource(s)
Potential Terraform Configuration
References
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance#network-interfaces
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/launch_template#network-interfaces
The text was updated successfully, but these errors were encountered: