Consul service registration in boundary

Is there a way to set a known consul service as a target with dynamic ports?
For example I have service Foo so the target might be foo.service.consul:32100, not sure how to get the port in there correctly .

I believe Consul Terraform Sync will do what you need. There’s a pretty good talk on our website about how Roblox uses it to do exactly that kind of automated config.

Sweet thanks, I have seen that but it probably went over my head at the time as I was still learning. will go back and look at again. Thanks!