[{"data":1,"prerenderedAt":67},["ShallowReactive",2],{"pattern-cognito-httpapi":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":29,"language":33,"level":34,"meta":35,"patternArch":36,"resources":54,"s3URL":6,"services":60,"stem":61,"testing":62,"videoId":28,"__hash__":66},"patterns\u002Fpatterns\u002Fcognito-httpapi.json","Amazon Cognito to HTTP APIs",null,{"headline":8,"text":9},"Cleanup",[10,11],"1. Delete the stack: \u003Ccode>sam delete --stack-name STACK_NAME\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>aws cloudformation list-stacks --query \"StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus\"\u003C\u002Fcode>",[13],"content\u002Fcontributors\u002Feric-johnson.json",{"text":15},[16],"sam deploy -g --capabilities CAPABILITY_AUTO_EXPAND CAPABILITY_IAM","Create an HTTP API endpoint with a JWT authorizer backed by Amazon Cognito","json","AWS SAM",{"template":21,"payloads":26},{"projectFolder":22,"repoURL":23,"templateURL":24,"templateFile":25},"cognito-httpapi","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fcognito-httpapi","serverless-patterns\u002Fcognito-httpapi","template.yaml",[27],{"headline":28,"payloadURL":28},"",{"headline":30,"text":31,"test":28},"How it works",[32],"The SAM template deploys a nested stack with authentication configured using Cognito. It also deploys an HTTP API configured with a JWT authorizer based on the Cognito configuration and a Lambda function on a secure route. \u003Cbr\u002F> Note: when deploying this pattern, both \u003Cem>CAPABILITY_AUTO_EXPAND\u003C\u002Fem> and \u003Cem>CAPABILITY_IAM\u003C\u002Fem> are required.","Node.js","300",{},{"icon1":37,"icon2":42,"icon3":45,"line1":49,"line2":52},{"x":38,"y":39,"service":40,"label":41},20,50,"cognito","Cognito",{"x":39,"y":39,"service":43,"label":44},"apigw","HTTP API",{"x":46,"y":39,"service":47,"label":48},80,"lambda","AWS Lambda",{"from":50,"to":51},"icon1","icon2",{"from":51,"to":53},"icon3",{"headline":55,"bullets":56},"Additional resources",[57],{"text":58,"link":59},"Watch a video demonstration","https:\u002F\u002Fyoutu.be\u002FklOScYEojzY",{"from":40,"to":43},"patterns\u002Fcognito-httpapi",{"headline":63,"text":64},"Testing",[65],"See the GitHub repo for detailed testing instructions.","1V48qb8r0DscMSB1rXuGNlGQHMCCcTRMdxbYJAyMD1U",1782229680094]