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" {