[{"data":1,"prerenderedAt":72},["ShallowReactive",2],{"pattern-lambda-managed-instances-bedrock-typescript-cdk":3,"pattern-group-lambda-managed-instances-bedrock-typescript-cdk":6},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":15,"extension":16,"framework":17,"gitHub":18,"highlight":6,"introBox":22,"language":28,"level":29,"meta":30,"patternArch":31,"patternGroup":6,"patternGroupLabel":6,"resources":56,"stem":67,"testing":68,"videoId":6,"__hash__":71},"patterns\u002Fpatterns\u002Flambda-managed-instances-bedrock-typescript-cdk.json","AWS Lambda Managed Instances with Amazon Bedrock",null,{"text":8},[9],"cdk destroy",[11],"content\u002Fcontributors\u002Fnithin-chandran-r.json",{"text":13},[14],"cdk deploy","Run Amazon Bedrock model invocations on Lambda Managed Instances (EC2-backed compute) using AWS CDK, combining serverless simplicity with EC2 flexibility.","json","AWS CDK",{"template":19},{"patternPath":20,"templateFile":21},"lambda-managed-instances-bedrock\u002Ftypescript\u002Fcdk","lib\u002Flambda-managed-instances-bedrock-stack.ts",{"headline":23,"text":24},"How it works",[25,26,27],"This pattern deploys a Lambda function on Managed Instances (EC2-backed compute) that invokes Amazon Bedrock (Claude) for text generation.","Lambda Managed Instances provide EC2 flexibility (Graviton, GPU, specialized hardware) with serverless operational simplicity — AWS handles provisioning, scaling, and maintenance.","The function runs on dedicated EC2 capacity in your VPC via a `CapacityProvider`, enabling access to EC2 pricing models (Savings Plans, Reserved Instances) while maintaining the Lambda programming model.","TypeScript","200",{},{"group1":32,"icon1":38,"icon2":42,"icon3":45,"line1":49,"line2":53},{"x":33,"y":34,"w":35,"h":36,"label":37},33,15,30,75,"VPC",{"x":34,"y":39,"service":40,"label":41},50,"icon-internet","AWS CLI\nInvoke alias",{"x":39,"y":39,"service":43,"label":44},"lambda-event-functions","AWS Lambda\nManaged Instances",{"x":46,"y":39,"service":47,"label":48},85,"bedrock","Amazon Bedrock\nInference profile",{"from":50,"to":51,"label":52},"icon1","icon2","Prompt",{"from":51,"to":54,"label":55},"icon3","InvokeModel",{"bullets":57},[58,61,64],{"text":59,"link":60},"Lambda Managed Instances documentation","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Flambda-managed-instances.html",{"text":62,"link":63},"Lambda Managed Instances launch blog","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Faws\u002Fintroducing-aws-lambda-managed-instances-serverless-simplicity-with-ec2-flexibility\u002F",{"text":65,"link":66},"Amazon Bedrock documentation","https:\u002F\u002Fdocs.aws.amazon.com\u002Fbedrock\u002Flatest\u002Fuserguide\u002F","patterns\u002Flambda-managed-instances-bedrock-typescript-cdk",{"text":69},[70],"See the README for testing instructions.","hJ9bCg0v4hBta_It_VLolu9OLYonhUugdFVOU7tAL5E",1795084466756]