Add lambda-microvm-custom-domain-cdk pattern - #3292
Conversation
Custom domains for AWS Lambda MicroVMs using an Application Load Balancer Host header rewrite over PrivateLink -- no CloudFront and no compute in the request path. Includes an optional, demo-only single-page app and provisioning API that can be removed to deploy the pure networking pattern. Built with AWS CDK v2 (TypeScript).
- README: 'AWS Application Load Balancer' in title; 'Amazon CloudFront'; link 'AWS Certificate Manager (ACM)'; 'at least' in the demo security note; Node.js 22+ prerequisite; copyright 2026. - Route53 -> 'Route 53' in comments/cdk.json text (CFN type untouched). - Demo Lambda runtime NODEJS_20_X -> NODEJS_22_X. - Scope provisioning Lambda IAM: item-level MicroVM actions to this account/Region + image ARN; ListMicrovms (collection-level) stays on '*'. - Trim example-pattern.json description to <=175 chars. - Update IAM test assertion for the scoped policy.
|
Pushed a commit addressing all the feedback: Service names qualified — Corrected Lambda runtime bumped to Node 22 — The demo provisioning function moved from Demo IAM scoped down — The provisioning Lambda's MicroVM permissions are now least-privilege per Lambda's actual IAM authorization model:
Unit tests were updated to assert the new policy shape (13/13 passing). Verified end to end — Deployed the pattern to a test account and smoke-tested the full flow: demo page (HTTP 200, TLS), CORS preflight (204), |
bfreiberg
left a comment
There was a problem hiding this comment.
Looks good, thanks for your contribution. Your pattern will be merged soon
Adds a new pattern: Custom domains for AWS Lambda MicroVMs with Application Load Balancer.
Each Lambda MicroVM is served under a domain you own (e.g. .microvms.example.com)
instead of the service-generated .lambda-microvm..on.aws endpoint. Built
entirely from load-balancing/networking primitives — no CloudFront and no compute in the
request path: an ALB rewrites the Host header (host-header-rewrite Transform) and forwards
to the MicroVM service over PrivateLink, with a wildcard ACM cert and Route 53 wildcard record.
Framework: AWS CDK v2 (TypeScript)
Includes: README.md, example-pattern.json, cdk.json, source, and passing tests (13/13).
The optional demo layer (single-page app + provisioning API) can be removed to deploy the
pure networking pattern.