[{"data":1,"prerenderedAt":81},["ShallowReactive",2],{"pattern-cognito-restapi-vpclink-cdk":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":15,"extension":16,"framework":17,"gitHub":18,"highlight":6,"introBox":24,"language":28,"level":29,"meta":30,"patternArch":31,"resources":62,"s3URL":6,"services":6,"stem":76,"testing":77,"videoId":6,"__hash__":80},"patterns\u002Fpatterns\u002Fcognito-restapi-vpclink-cdk.json","Amazon Cognito to Amazon API Gateway private REST API",null,{"text":8},[9],"Delete the stack: \u003Ccode>cdk destroy\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fjustin-plock.json",{"text":13},[14],"cdk deploy --all","This pattern shows how to authenticate and authorize requests to a private REST API Gateway with Amazon Cognito.","json","AWS CDK",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fcognito-restapi-vpclink-cdk","serverless-patterns\u002Fcognito-restapi-vpclink-cdk","cognito-restapi-vpclink-cdk","cdk\u002Flib\u002Fcdk-cognito-fargate-stack.js",{"headline":25,"text":26},"How it works",[27],"This sample project demonstrates how to use Amazon Cognito with a private AWS REST API Gateway to authenticate and authorize requests to a private HTTP endpoint hosted on a Network Load Balancer and ECS\u002FFargate.","Node.js","200",{},{"group1":32,"icon1":38,"icon2":43,"icon3":47,"icon4":51,"line1":55,"line2":58,"line3":60},{"x":33,"y":34,"w":35,"h":36,"label":37},26,15,72,70,"VPC",{"x":39,"y":40,"service":41,"label":42},13,50,"cognito","Amazon Cognito",{"x":44,"y":40,"service":45,"label":46},38,"apigw","API Gateway",{"x":48,"y":40,"service":49,"label":50},63,"vpc-endpoint","VPC Link",{"x":52,"y":40,"service":53,"label":54},88,"fargate","AWS Fargate",{"from":56,"to":57},"icon1","icon2",{"from":57,"to":59},"icon3",{"from":59,"to":61},"icon4",{"bullets":63},[64,67,70,73],{"text":65,"link":66},"Controlling access to a REST API with a Cognito User Pools Authorizer","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fapigateway-integrate-with-cognito.html",{"text":68,"link":69},"Understanding VPC links in Amazon API Gateway private integrations","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Funderstanding-vpc-links-in-amazon-api-gateway-private-integrations\u002F",{"text":71,"link":72},"Architecture patterns for consuming private APIs cross-account","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Farchitecture-patterns-for-consuming-private-apis-cross-account\u002F",{"text":74,"link":75},"Building private cross-account APIs using Amazon API Gateway and AWS PrivateLink","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fbuilding-private-cross-account-apis-using-amazon-api-gateway-and-aws-privatelink\u002F","patterns\u002Fcognito-restapi-vpclink-cdk",{"text":78},[79],"See the GitHub repo for detailed testing instructions.","Dp_rwbliki8W5VM-E6hjzZywTKnbQ8ThQZ5_a6CvMlI",1778846883976]