From 01302a4bb0fbb7a01006b71f268303ba77d05dcd Mon Sep 17 00:00:00 2001 From: decfox Date: Wed, 18 Dec 2024 13:01:53 +0530 Subject: [PATCH] refactor: changes to allow terraform to apply cleanly --- tf/modules/ec2/main.tf | 2 +- tf/modules/ec2/outputs.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tf/modules/ec2/main.tf b/tf/modules/ec2/main.tf index 327b0cf..1e7691f 100644 --- a/tf/modules/ec2/main.tf +++ b/tf/modules/ec2/main.tf @@ -106,6 +106,6 @@ resource "aws_alb_target_group" "ooni_ec2" { } resource "aws_lb_target_group_attachment" "oonibackend_proxy" { - target_id = aws_instance.ooni_ec2 + target_id = aws_instance.ooni_ec2.id target_group_arn = aws_alb_target_group.ooni_ec2.arn } diff --git a/tf/modules/ec2/outputs.tf b/tf/modules/ec2/outputs.tf index 6d6cfca..4a99b3c 100644 --- a/tf/modules/ec2/outputs.tf +++ b/tf/modules/ec2/outputs.tf @@ -1,5 +1,5 @@ output "aws_instance_id" { - value = aws_instance.oonibackend_proxy.id + value = aws_instance.ooni_ec2.id } output "aws_instance_public_dns" {