[{"data":1,"prerenderedAt":83},["ShallowReactive",2],{"pattern-apigw-cloudmap-fargate-typescript-cdk":3,"pattern-group-apigw-cloudmap-fargate-typescript-cdk":6},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":24,"language":29,"level":30,"meta":31,"patternArch":32,"patternGroup":66,"patternGroupLabel":6,"resources":67,"stem":78,"testing":79,"videoId":6,"__hash__":82},"patterns\u002Fpatterns\u002Fapigw-cloudmap-fargate-typescript-cdk.json","Amazon API Gateway HTTP API to Amazon ECS on AWS Fargate through AWS Cloud Map",null,{"text":8},[9],"\u003Ccode>npx cdk destroy\u003C\u002Fcode>",[11],"content\u002Fcontributors\u002Fnithin-chandran-r.json",{"text":13},[14,15,16],"\u003Ccode>npm install\u003C\u002Fcode>","\u003Ccode>npx cdk bootstrap\u003C\u002Fcode>","\u003Ccode>npx cdk deploy\u003C\u002Fcode>","An Amazon API Gateway HTTP API reaches Amazon ECS on AWS Fargate tasks through a VPC link and an AWS Cloud Map service, with no load balancer.","json","AWS CDK",{"template":21},{"patternPath":22,"templateFile":23},"apigw-cloudmap-fargate\u002Ftypescript\u002Fcdk","lib\u002Fapigw-cloudmap-fargate-stack.ts",{"headline":25,"text":26},"How it works",[27,28],"An Amazon API Gateway HTTP API with AWS Identity and Access Management (IAM) authorization uses a VPC link V2 and an AWS Cloud Map service as its private integration target. API Gateway looks up the IP address and port of the healthy instances with `DiscoverInstances` and distributes requests across them.","The Amazon ECS service registers each AWS Fargate task in AWS Cloud Map with an SRV record, which carries the port that an A record does not. No load balancer sits between API Gateway and the tasks.","TypeScript","300",{},{"group1":33,"icon1":39,"icon2":44,"icon3":48,"icon4":52,"line1":56,"line2":60,"line3":63},{"x":34,"y":35,"w":36,"h":37,"label":38},51,20,46,66,"VPC",{"x":40,"y":41,"service":42,"label":43},13,50,"icon-internet","Client\nSigV4",{"x":45,"y":41,"service":46,"label":47},37,"apigw","Amazon API Gateway\nHTTP API",{"x":49,"y":41,"service":50,"label":51},62,"cloud-map","AWS Cloud Map\nService discovery",{"x":53,"y":41,"service":54,"label":55},85,"fargate","AWS Fargate\nECS tasks",{"from":57,"to":58,"label":59},"icon1","icon2","GET",{"from":58,"to":61,"label":62},"icon3","VPC link",{"from":61,"to":64,"label":65},"icon4","SRV","apigw-cloudmap-fargate",{"bullets":68},[69,72,75],{"text":70,"link":71},"Create private integrations for HTTP APIs in Amazon API Gateway","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fhttp-api-develop-integrations-private.html",{"text":73,"link":74},"Set up VPC links V2 in Amazon API Gateway","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fapigateway-vpc-links-v2.html",{"text":76,"link":77},"Use service discovery to connect Amazon ECS services with DNS names","https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonECS\u002Flatest\u002Fdeveloperguide\u002Fservice-discovery.html","patterns\u002Fapigw-cloudmap-fargate-typescript-cdk",{"text":80},[81],"See the GitHub repo for detailed testing instructions.","OjsShmaUJWTmlpM3negwN83jz0Whu9dXpDGLQtltmK0",1795084458690]