Am able to launch a elb via terraform and in output file stored the dns name of that ELB. Now I want to integrate that url with my api gateway via terraform, but unable to do that.
resource "aws_api_gateway_rest_api" "demo" {
name = "${var.api_name}"
invoke_url = "${var.invoke_url}"
endpoint_configuration {
types = ["${var.api_type}"]
}
}
invoke_url = "${module.elb.elb_dns_name}
api-gateway url should be like - http://xxx.aws.elb.com/api