I’m creating some AWS ECS Service using Service connect in terraform, in this way:
service_connect_configuration {
enabled = true
namespace = var.vm_namespace
service {
port_name = "http"
discovery_name = var.vm_name
client_alias {
port = var.vm_port
}
}
}
It creates a namespace on AWS CloudMap but with an integration type of API Calls Only
:
It works if I call one task to another in ECS. But I have an App that relies on DNS, and it does not work, since If I try to resolve the IPs of tasks using DNS it returns no such host
since it does not exist on route 53.
Reading the Cloud Map docs I saw I need to add dns query integration type
but I didn’t find a way to do it using terraform and AWS ECS service connect.