Can we get Account A load balancer name and use it in Account B using data source?

Hi Team, i have a load balancer in Account A and have an instance in Account B. I need create a listener rule in account B and attach it to Account A load balancer. For that purpose i need to get the listener Arn of Account A into Account B. Please suggest if there is a way to get the details. If they are in same account we can use the data source. Thanks.

You can still use the data source, just pass a different provider to it.

You may face some further challenges like VPC-peering, routing, etc but I’m assuming you’re aware of it.