Skip to content

Document BYO ECR images as the MicroVM container base - #6

Merged
pertschuk merged 1 commit into
mainfrom
cursor/byo-ecr-microvm-image-5528
Aug 28, 2026
Merged

Document BYO ECR images as the MicroVM container base#6
pertschuk merged 1 commit into
mainfrom
cursor/byo-ecr-microvm-image-5528

Conversation

@pertschuk

Copy link
Copy Markdown
Collaborator

Partners who already publish an application image to ECR from CI/CD can use that image as the MicroVM container base. Lambda still does not take an ECR URI as the MicroVM image itself.

How it works

  • create-microvm-image still takes --code-artifact (zip with a Dockerfile + Cursor worker files) and --base-image-arn (a Lambda-managed MicroVM OS from list-managed-microvm-images).
  • The customer ECR image is FROM in that Dockerfile. This repo’s worker runtime (CLI, git, hook.py /ready /validate /run, entrypoint.sh) is layered on top.
  • CI/CD keeps publishing the app image as today. Rebuilding the MicroVM image is what picks up a new tag or digest.
  • /ready and /validate stay enabled on create-microvm-image / --hooks, same as the stock path.

This PR

  • Adds a partner README section Bring your own ECR image (plus a troubleshooting row and AWS docs link).
  • Adds microvm-image/Dockerfile.ecr as a thin example that stays in sync with the stock Dockerfile’s CLI install / COPY / ENTRYPOINT. The stock Dockerfile remains the quickstart.
  • Extends CloudFormation BuildRole with private ECR pull: ecr:GetAuthorizationToken (Resource: *, required for that action) and layer pull scoped to this account’s repositories.

Out of scope: no change to the default image path, no lab CLI pin docs, not merged.

Docs: https://docs.aws.amazon.com/lambda/latest/dg/microvms-images.html

Open in Web Open in Cursor 

Partners already publish application images from CI/CD. Lambda still
builds from a Dockerfile zip plus a managed MicroVM OS; their ECR image
is FROM in that Dockerfile, with this repo's worker runtime layered on
top. Grant the build role private ECR pull so that path works.

Co-authored-by: Jack Pertschuk <jp954@cornell.edu>
@pertschuk
pertschuk marked this pull request as ready for review August 28, 2026 13:23
@pertschuk
pertschuk merged commit 94cd0ca into main Aug 28, 2026
2 checks passed
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.

2 participants