1 Answer
- Newest
- Most votes
- Most comments
0
What you are looking for is an API management layer.
It goes like this:
ALB -> API Gateway -> ALB ACCOUNT A -> ECS
ALB -> API Gateway -> ALB ACCOUNT B -> ECS
Now, your account A needs properly setup networking and routing tables in your subnets able to resolve to ALB ACCOUNT B IPs.
The API Gateway can be either AWS API Gateway, or Istio, or Kong, or others....
And yes, you need at least 3 ALBs, One in front of each ECS, and one in front of the API gateway.
Hope that helps!
answered a year ago
Relevant content
- asked 2 years ago
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
What exactly is API Gateway doing in this scenario within both the accounts? Is that an API GW in each account or just one?
Its just 1 API gateway for both or "n" accounts. To clarify, with an API Gateway or an Ingress Controller layer at that point you can route your traffic to any targets.