[{"data":1,"prerenderedAt":73},["ShallowReactive",2],{"pattern-lambda-microvms-kiro-code-reviewer":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":21,"extension":22,"framework":23,"gitHub":24,"highlight":6,"introBox":30,"language":37,"level":38,"meta":39,"patternArch":40,"resources":54,"s3URL":6,"services":6,"stem":68,"testing":69,"videoId":6,"__hash__":72},"patterns\u002Fpatterns\u002Flambda-microvms-kiro-code-reviewer.json","Code Reviewer using Kiro on AWS Lambda MicroVMs",null,{"text":8},[9],"aws cloudformation delete-stack --stack-name kiro-reviewer --region us-east-2",[11],"content\u002Fcontributors\u002Fricardo-marques.json",{"headline":13,"text":14},"Deploy the pattern",[15,16,17,18,19,20],"export KIRO_API_KEY=\"your-kiro-api-key\"","export KIRO_API_KEY=\"your-kiro-api-key-here\"","export STACK_NAME=\"your-stack-name-here\"","export REGION=\"you-region-here\"","chmod +x scripts\u002Fdeploy.sh",".\u002Fscripts\u002Fdeploy.sh [stack-name] [region]","Deploy AWS Lambda MicroVMs that run Kiro headless to perform AI-powered code reviews on AWS CodeCommit pull requests.","json","AWS CloudFormation",{"template":25},{"repoURL":26,"templateURL":27,"projectFolder":28,"templateFile":29},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Flambda-microvms-kiro-code-reviewer","serverless-patterns\u002Flambda-microvms-kiro-code-reviewer","lambda-microvms-kiro-code-reviewer","template.yaml",{"headline":31,"text":32},"How it works",[33,34,35,36],"This pattern deploys long-running Lambda MicroVMs with the Kiro CLI installed. The MicroVMs expose an HTTP API (port 8080) that accepts code review requests specifying a CodeCommit repository and pull request ID.","When a review is triggered, the service clones the repository, computes the diff between the source and destination commits, and invokes Kiro headless to generate a structured code review covering security, bugs, performance, and code quality.","The Kiro API Key is stored in AWS Secrets Manager and fetched at runtime. The review output is posted back as a comment on the CodeCommit pull request. The MicroVM auto-suspends when idle and resumes on demand with sub-second latency.","The CloudFormation stack also provisions a sample CodeCommit repository seeded with a deliberately vulnerable 'feature branch' PR, so you can test the reviewer immediately after deployment.","Python","300",{},{"icon1":41,"icon2":46,"line1":50},{"x":42,"y":43,"service":44,"label":45},20,50,"codecommit","AWS CodeCommit",{"x":47,"y":43,"service":48,"label":49},80,"lambda-microvms","AWS Lambda MicroVMs",{"from":51,"to":52,"label":53},"icon1","icon2","on pull request",{"bullets":55},[56,59,62,65],{"text":57,"link":58},"AWS Lambda MicroVMs Documentation","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Flambda-microvms.html",{"text":60,"link":61},"Kiro - AI-powered development environment","https:\u002F\u002Fkiro.dev",{"text":63,"link":64},"AWS CodeCommit Pull Request API","https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodecommit\u002Flatest\u002FAPIReference\u002FAPI_CreatePullRequest.html",{"text":66,"link":67},"Firecracker - Secure and fast microVMs for serverless computing","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fopensource\u002Ffirecracker-open-source-secure-fast-microvm-serverless\u002F","patterns\u002Flambda-microvms-kiro-code-reviewer",{"text":70},[71],"See the README for the full curl command to trigger a review on the sample PR.","zlm7Y--nWNmJEqLv9lB18daOdzDsbjlUpOvbuVOFIEQ",1782233468169]