Http API Gateway using stage variables on a private integration

0

Hi,

I've been trying to use API Gateway (HTTP) to connect it with some ECS microservices. As far as I can see (using the console), I need the following:

  • Gateway -> VPC Link -> ALB -> ECS

That part is working ok, and I can attach a propper integration with no problems.

However, I have 3 ECS clusters (dev, uat, prod)

In order to connect to those environments, I had to create 3 different HTTP API GATEWAYS. Is there any way to create just 1 API Gateway and connect it to different private ECS using Stage Variables??

I managed to do it on REST API GATEWAYS, but using HTTP API GATEWAY seems impossible using the console because it forces me to choose an ALB, listener and VPC Link.

Am I missing something?

Thank you.

1개 답변
0

It should work. Look here for more details.

Saying that, I would recommend creating separate APIs for the different stages. Just like you created different backends, create different APIs. This way you reduce the risk that when you change something in dev it will accidentally impact production. I would even recommend creating the different environments in different accounts.

profile pictureAWS
전문가
Uri
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠