Skip to content

Commit

Permalink
feat: Add support for network_card_index argument for network interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
fdmsantos committed Mar 22, 2024
1 parent 4f8387d commit d57a5c1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ resource "aws_instance" "this" {

content {
device_index = network_interface.value.device_index
network_card_index = lookup(network_interface.value, "network_card_index", null)
network_interface_id = lookup(network_interface.value, "network_interface_id", null)
delete_on_termination = try(network_interface.value.delete_on_termination, false)
}
Expand Down Expand Up @@ -311,6 +312,7 @@ resource "aws_instance" "ignore_ami" {

content {
device_index = network_interface.value.device_index
network_card_index = lookup(network_interface.value, "network_card_index", null)
network_interface_id = lookup(network_interface.value, "network_interface_id", null)
delete_on_termination = try(network_interface.value.delete_on_termination, false)
}
Expand Down Expand Up @@ -505,6 +507,7 @@ resource "aws_spot_instance_request" "this" {

content {
device_index = network_interface.value.device_index
network_card_index = lookup(network_interface.value, "network_card_index", null)
network_interface_id = lookup(network_interface.value, "network_interface_id", null)
delete_on_termination = try(network_interface.value.delete_on_termination, false)
}
Expand Down

0 comments on commit d57a5c1

Please sign in to comment.