From a18d5a731dadeb6ba0573a915ab1aa93eb4b77da Mon Sep 17 00:00:00 2001 From: MarcoIeni <11428655+MarcoIeni@users.noreply.github.com> Date: Wed, 25 Sep 2024 11:43:20 +0200 Subject: [PATCH] create new aws_network_interface --- terraform/playground/instance.tf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/terraform/playground/instance.tf b/terraform/playground/instance.tf index e7c740e31..d186a2d4d 100644 --- a/terraform/playground/instance.tf +++ b/terraform/playground/instance.tf @@ -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 }