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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ