'API Gateway integration with backend cluster in another account

I have an API Gateway in Account A and I want to integrate with an ECS cluster backend in Account B. There is an ALB in Account B. Both accounts use Transit Gateway to communicate to each other. Communications must be private.

How can I achieve this? Is there a way that I can expose a NLB in account B to point my VPC-Link to?

Edit:

like this



Solution 1:[1]

It's not technically an infinite loop, but it's going to trigger your onload eventually each time you assign a string to the src property, regardless of whether it's already been set before.

Change tryLoadImage(i) to tempImg[i].src inside the definition of saveImages() to avoid infinitely refetching.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Patrick Roberts