Skip to content

feat: Add Lambda Managed Instances pattern (Python, SAM/CloudFormation) - #3253

Open
awsTest1992 wants to merge 3 commits into
aws-samples:mainfrom
awsTest1992:lambda-managed-instances-python-sam
Open

feat: Add Lambda Managed Instances pattern (Python, SAM/CloudFormation)#3253
awsTest1992 wants to merge 3 commits into
aws-samples:mainfrom
awsTest1992:lambda-managed-instances-python-sam

Conversation

@awsTest1992

Copy link
Copy Markdown
Contributor

Issue #, if available:

Description of changes:

Adds a SAM/CloudFormation-based pattern for AWS Lambda Managed Instances with Python. This fills the gap where CDK and Terraform versions exist but no SAM equivalent was available.

Pattern includes:

  • VPC with private subnets
  • Lambda Capacity Provider (ARM64/Graviton4)
  • Capacity Provider Operator IAM role (AWSLambdaManagedEC2ResourceOperator)
  • Python 3.13 function with multi-concurrency (thread-safe)
  • Published version + alias for invocation
  • CloudWatch Logs with 14-day retention

Tested: Deployed and invoked successfully in us-east-1.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

- Narrow IAM wildcard: orchestrator* -> orchestrator:*
- Fix casing: 'Durable Lambda Function' -> 'Lambda durable function'
- Use single quotes for function-name in test commands
- Fix docstring casing: 'Durable Functions' -> 'durable functions'
- Add CloudWatch Logs group with 14-day retention
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants