[{"data":1,"prerenderedAt":64},["ShallowReactive",2],{"pattern-alb-cognito-lambda":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":30,"level":31,"meta":32,"patternArch":33,"resources":51,"s3URL":6,"services":6,"stem":59,"testing":60,"videoId":6,"__hash__":63},"patterns\u002Fpatterns\u002Falb-cognito-lambda.json","ALB, Amazon Cognito and AWS Lambda integration",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fjainam-shah.json",{"text":13},[14],"sam deploy --guided","Create an ALB, Cognito and Lambda integration to fetch regional metrics","json","AWS SAM",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Falb-cognito-lambda","serverless-patterns\u002Falb-cognito-lambda","alb-cognito-lambda","template.yaml",{"headline":25,"text":26},"How it works",[27,28,29],"This pattern explains how to deploy a SAM application that integrates an Application Load Balancer, Cognito and Lambda to fetch Lambda regional metrics.","We will be deploying an Application Load Balancer in front of the Lambda function. Access to the Lambda function is given after authenticating user via AWS Cognito","Once the authentication is successful, the user is redirected to an HTML page which will display list of Lambda's regional metrics.","Python","300",{},{"icon1":34,"icon2":39,"icon3":42,"line1":46,"line2":49},{"x":35,"y":36,"service":37,"label":38},20,50,"alb","Application Load Balancer",{"x":36,"y":36,"service":40,"label":41},"cognito","Amazon Cognito",{"x":43,"y":36,"service":44,"label":45},80,"lambda","AWS Lambda",{"from":47,"to":48},"icon1","icon2",{"from":48,"to":50},"icon3",{"bullets":52},[53,56],{"text":54,"link":55},"Authenticate users using an Application Load Balancer","https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticloadbalancing\u002Flatest\u002Fapplication\u002Flistener-authenticate-users.html",{"text":57,"link":58},"Using AWS Lambda with an Application Load Balancer","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fservices-alb.html","patterns\u002Falb-cognito-lambda",{"text":61},[62],"See the GitHub repo for detailed testing instructions.","cWlJWJnIX9BbezZpSbJDTSgiulrWB_tOUbJJ2FlhdvM",1779273330764]