[{"data":1,"prerenderedAt":65},["ShallowReactive",2],{"pattern-lambda-managed-instances-nodejs-tf":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":11,"deploy":13,"description":19,"extension":20,"framework":21,"gitHub":22,"highlight":6,"introBox":28,"language":35,"level":36,"meta":37,"patternArch":38,"resources":43,"s3URL":6,"services":6,"stem":60,"testing":61,"videoId":6,"__hash__":64},"patterns\u002Fpatterns\u002Flambda-managed-instances-nodejs-tf.json","Hello World on AWS Lambda Managed Instances (Terraform)",null,{"text":8},[9,10],"Delete the infrastructure: \u003Ccode>terraform destroy\u003C\u002Fcode>.","See the Readme file for detailed cleanup instructions.",[12],"content\u002Fcontributors\u002Fdmitry-gulin.json",{"text":14},[15,16,17,18],"cd lambda && npm install && cd ..","terraform init","terraform apply","See the Readme file for detailed deployment instructions.","Deploy a simple Hello World AWS Lambda function on Lambda Managed Instances using Terraform","json","Terraform",{"template":23},{"repoURL":24,"templateURL":25,"projectFolder":26,"templateFile":27},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Flambda-managed-instances-tf","serverless-patterns\u002Flambda-managed-instances-tf","lambda-managed-instances-tf","main.tf",{"headline":29,"text":30},"How it works",[31,32,33,34],"This pattern demonstrates how to deploy a simple Hello World AWS Lambda function running on AWS Lambda Managed Instances using Terraform.","AWS Lambda Managed Instances enables you to run Lambda functions on EC2 instances while maintaining Lambda's operational simplicity. It fully manages infrastructure tasks including instance lifecycle, OS and runtime patching, routing, load balancing, and auto scaling.","The Hello World function uses ES modules (ESM) and accepts an event with a name parameter and returns a simple JSON response with a greeting message.","The Terraform configuration creates a complete VPC infrastructure with public and private subnets, NAT gateways, and automatically associates the Lambda function with a capacity provider for managed instances.","Node.js","200",{},{"icon1":39},{"x":40,"y":40,"service":41,"label":42},50,"lambda","Lambda Managed Instances",{"bullets":44},[45,48,51,54,57],{"text":46,"link":47},"AWS Lambda Managed Instances documentation","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Flambda-managed-instances.html",{"text":49,"link":50},"AWS Lambda Pricing (supported instance types)","https:\u002F\u002Faws.amazon.com\u002Flambda\u002Fpricing\u002F",{"text":52,"link":53},"AWS Lambda Developer Guide","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002F",{"text":55,"link":56},"Terraform AWS Provider Documentation","https:\u002F\u002Fregistry.terraform.io\u002Fproviders\u002Fhashicorp\u002Faws\u002Flatest\u002Fdocs",{"text":58,"link":59},"Lambda Capacity Provider Terraform Resource","https:\u002F\u002Fregistry.terraform.io\u002Fproviders\u002Fhashicorp\u002Faws\u002Flatest\u002Fdocs\u002Fresources\u002Flambda_capacity_provider","patterns\u002Flambda-managed-instances-nodejs-tf",{"text":62},[63],"See the Readme file for detailed testing instructions.","tDSUMOxu1bKXabQGsVAppPuIfOWaOvjcn1hi8mf9tFc",1778846886410]