|
| 1 | +{ |
| 2 | + "title": "AWS Lambda Hello World on AWS Lambda Managed Instances (Terraform)", |
| 3 | + "description": "Deploy a simple Hello World Lambda function on Lambda Managed Instances using Terraform", |
| 4 | + "language": "Python", |
| 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 Lambda function running on Lambda Managed Instances using Terraform.", |
| 11 | + "Lambda Managed Instances provide predictable performance and reduced cold starts for your Lambda functions by pre-warming execution environments.", |
| 12 | + "The Hello World function accepts an event with a name parameter and returns a simple JSON response with a greeting message.", |
| 13 | + "The Terraform implementation includes a complete VPC setup with private subnets, NAT gateways, and proper security groups for Lambda 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": "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": "Terraform Lambda Function Resource", |
| 44 | + "link": "https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_function" |
| 45 | + } |
| 46 | + ] |
| 47 | + }, |
| 48 | + "deploy": { |
| 49 | + "text": [ |
| 50 | + "terraform init", |
| 51 | + "terraform plan", |
| 52 | + "terraform apply" |
| 53 | + ] |
| 54 | + }, |
| 55 | + "testing": { |
| 56 | + "text": [ |
| 57 | + "See the GitHub repo for detailed testing instructions." |
| 58 | + ] |
| 59 | + }, |
| 60 | + "cleanup": { |
| 61 | + "text": [ |
| 62 | + "Delete the stack: <code>terraform destroy</code>." |
| 63 | + ] |
| 64 | + }, |
| 65 | + "authors": [ |
| 66 | + { |
| 67 | + "name": "Matt Boland", |
| 68 | + "bio": "Sr. Solutions Architect, AWS.", |
| 69 | + "linkedin": "matt-boland" |
| 70 | + } |
| 71 | + ], |
| 72 | + "patternArch": { |
| 73 | + "icon1": { |
| 74 | + "x": 50, |
| 75 | + "y": 50, |
| 76 | + "service": "lambda", |
| 77 | + "label": "AWS Lambda Managed Instances" |
| 78 | + } |
| 79 | + } |
| 80 | +} |
0 commit comments