Skip to content

Commit

Permalink
create new aws_network_interface
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoieni committed Sep 25, 2024
1 parent 4e0b327 commit a18d5a7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion terraform/playground/instance.tf
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,18 @@ resource "aws_network_interface" "playground" {
security_groups = [aws_security_group.playground.id]
}

resource "aws_network_interface" "playground2" {
subnet_id = data.terraform_remote_state.shared.outputs.prod_vpc.public_subnets[0]
security_groups = [aws_security_group.playground.id]
}

resource "aws_eip_association" "playground" {
network_interface_id = aws_network_interface.playground.id
allocation_id = aws_eip.playground.id
}

resource "aws_eip_association" "playground2" {
network_interface_id = aws_network_interface.playground.id
network_interface_id = aws_network_interface.playground2.id
allocation_id = aws_eip.playground2.id
}

Expand Down

0 comments on commit a18d5a7

Please sign in to comment.