I am using terraform to register a target group with a LoadBalancer. As I understand it. I use the resource aws_lb_target_group_attachment with the vars
target_group_arn which is set to the arn of the target group"
target_id not sure what to set this to.
target_group_arn is the arn of the target group. But I am not sure what target_id is, looking at the docs it says
The ID of the target. This is the Instance ID for an instance, or the container ID for an ECS container.
So I am guessing its referring to the ECS container. My target is an instance. But when I look at my ECS cluster there is no ID on the console.
I have created the cluster, and I have created 3 service. Neither have an ID.
What is it that I am missing, or I need to create.
Thanks