|
| 1 | +{ |
| 2 | + "title": "Hello World on AWS Lambda Managed Instances (Terraform)", |
| 3 | + "description": "Deploy a simple Hello World AWS Lambda function on Lambda Managed Instances using Terraform", |
| 4 | + "language": "Node.js", |
| 5 | + "level": "200", |
| 6 | + "framework": "Terraform", |
| 7 | + "introBox": { |
| 8 | + "headline": "How it works", |
| 9 | + "text": [ |
| 10 | + "This pattern demonstrates how to deploy a simple Hello World AWS Lambda function running on AWS Lambda Managed Instances using Terraform.", |
| 11 | + "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.", |
| 12 | + "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.", |
| 13 | + "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." |
| 14 | + ] |
| 15 | + }, |
| 16 | + "gitHub": { |
| 17 | + "template": { |
| 18 | + "repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/lambda-managed-instances-tf", |
| 19 | + "templateURL": "serverless-patterns/lambda-managed-instances-tf", |
| 20 | + "projectFolder": "lambda-managed-instances-tf", |
| 21 | + "templateFile": "main.tf" |
| 22 | + } |
| 23 | + }, |
| 24 | + "resources": { |
| 25 | + "bullets": [ |
| 26 | + { |
| 27 | + "text": "AWS Lambda Managed Instances documentation", |
| 28 | + "link": "https://docs.aws.amazon.com/lambda/latest/dg/lambda-managed-instances.html" |
| 29 | + }, |
| 30 | + { |
| 31 | + "text": "AWS Lambda Pricing (supported instance types)", |
| 32 | + "link": "https://aws.amazon.com/lambda/pricing/" |
| 33 | + }, |
| 34 | + { |
| 35 | + "text": "AWS Lambda Developer Guide", |
| 36 | + "link": "https://docs.aws.amazon.com/lambda/latest/dg/" |
| 37 | + }, |
| 38 | + { |
| 39 | + "text": "Terraform AWS Provider Documentation", |
| 40 | + "link": "https://registry.terraform.io/providers/hashicorp/aws/latest/docs" |
| 41 | + }, |
| 42 | + { |
| 43 | + "text": "Lambda Capacity Provider Terraform Resource", |
| 44 | + "link": "https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_capacity_provider" |
| 45 | + } |
| 46 | + ] |
| 47 | + }, |
| 48 | + "deploy": { |
| 49 | + "text": [ |
| 50 | + "cd lambda && npm install && cd ..", |
| 51 | + "terraform init", |
| 52 | + "terraform apply", |
| 53 | + "See the Readme file for detailed deployment instructions." |
| 54 | + ] |
| 55 | + }, |
| 56 | + "testing": { |
| 57 | + "text": [ |
| 58 | + "See the Readme file for detailed testing instructions." |
| 59 | + ] |
| 60 | + }, |
| 61 | + "cleanup": { |
| 62 | + "text": [ |
| 63 | + "Delete the infrastructure: <code>terraform destroy</code>.", |
| 64 | + "See the Readme file for detailed cleanup instructions." |
| 65 | + ] |
| 66 | + }, |
| 67 | + "authors": [ |
| 68 | + { |
| 69 | + "name": "Dmitry Gulin", |
| 70 | + "bio": "Senior Delivery Consultant, AWS.", |
| 71 | + "linkedin": "dmitry-gulin" |
| 72 | + } |
| 73 | + ], |
| 74 | + "patternArch": { |
| 75 | + "icon1": { |
| 76 | + "x": 50, |
| 77 | + "y": 50, |
| 78 | + "service": "lambda", |
| 79 | + "label": "Lambda Managed Instances" |
| 80 | + } |
| 81 | + } |
| 82 | +} |
0 commit comments