[{"data":1,"prerenderedAt":67},["ShallowReactive",2],{"pattern-appsync-cognito-lambda-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":29,"level":30,"meta":31,"patternArch":32,"resources":51,"s3URL":6,"services":6,"stem":62,"testing":63,"videoId":6,"__hash__":66},"patterns\u002Fpatterns\u002Fappsync-cognito-lambda-cdk.json","Authenticate AWS AppSync Api with Amazon Cognito",null,{"text":8},[9],"Delete the stack: \u003Ccode>cdk delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Frosius-ndimofor.json",{"text":13},[14],"cdk deploy","Create an appsync api and authenticate all request with AWS Cognito User Pools.","json","AWS CDK",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fappsync-cognito-lambda-cdk","serverless-patterns\u002Fappsync-cognito-lambda-cdk","appsync-cognito-lambda-cdk","lib\u002Fcognito-auth-cdk-stack.ts",{"headline":25,"text":26},"How it works",[27,28],"This sample projects demonstrates how to use AWS Cognito to authenticate an AWS Appsync API with lambda resolvers.The same concept can be applied to vtl resolvers as well.","This pattern deploys one appsync api, with a direct lamda resolver.","TypeScript","200",{},{"icon1":33,"icon2":38,"icon3":41,"line1":45,"line2":49},{"x":34,"y":35,"service":36,"label":37},20,50,"appsync","AWS AppSync",{"x":35,"y":35,"service":39,"label":40},"cognito","Amazon Cognito",{"x":42,"y":35,"service":43,"label":44},80,"lambda","AWS Lambda",{"from":46,"to":47,"label":48},"icon1","icon2","",{"from":47,"to":50,"label":48},"icon3",{"bullets":52},[53,56,59],{"text":54,"link":55},"AWS CDK- Define cloud infrastructure using familiar programming languages","https:\u002F\u002Faws.amazon.com\u002Fcdk\u002F",{"text":57,"link":58},"AWS Appsync - Accelerate application development with serverless GraphQL and Pub\u002FSub APIs","https:\u002F\u002Faws.amazon.com\u002Fappsync\u002F",{"text":60,"link":61},"Amazon Cognito - Implement secure, frictionless customer identity and access management that scales","https:\u002F\u002Faws.amazon.com\u002Fcognito\u002F","patterns\u002Fappsync-cognito-lambda-cdk",{"text":64},[65],"See the GitHub repo for detailed testing instructions.","yt7pHn6EbN72v6YbmLRqPrWf0y027OxN4H9v2l-ykLk",1778846883192]