Using Typescript CDK For Fargate and API Gateway

0

Hi

This is not as much of a question but an ask. I have an ECS cluster setup running fargate. I want to setup a Rest API using API Gateway as part of my CDK Typescript project.

Can anyone point me at examples for talking to the Fargate services using the RestAPI? A full cdk example for this would be useful. After getting this service setup and working, I need to setup Cognito authentication - hence the need for a Rest base API> I have found samples for the Http API and unfortunately have not been able to adapt the same.

Any guidance on this would be appreciated.

Thank you Damien

2 個答案
0

You can explore the code and adapt it to your needs. The repository is available at https://github.com/aws-samples/http-api-aws-fargate-cdk

profile picture
Jagan
已回答 3 個月前
0

Yes I spotted this source code but it is well out of date. Usually I would look at code like this and adapt but there seems to be alot of quirky nuances between the Rest API and the Http API in this case

已回答 3 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南