I created A record set thorough AWS console , while creating AA record set, I have chosen ALB.
Now While writing the tf code how to add ALB details. If any specific procedure please share wih me.
resource “aws_route53_record” “test” {
#zone_id = “{aws_route53_zone.primary.zone_id}"
zone_id = "ZKPMFYYRJ1ZW9"
name = "test.xxxxxx.com"
type = "A"
ttl = "300"
records = ["{aws_eip.lb.public_ip}”] ==> not working
#records = “[LB4-WebIIS-1240313860.us-east-2.elb.amazonaws.com]”
}