Skip to content

feat: support X86_64 for AWS::Serverless::MicrovmImage - #4031

Merged
licjun merged 1 commit into
aws:developfrom
licjun:feat-microvm-image-x86-64
Nov 10, 2026
Merged

licjun merged 1 commit into
aws:developfrom
licjun:feat-microvm-image-x86-64

Conversation

@licjun

@licjun licjun commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Issue #, if available

Description of changes

The MicroVM service now builds X86_64 images. The AWS::Lambda::MicrovmImage CloudFormation schema accepts ARM_64 and X86_64 for CpuConfigurations[].Architecture.

The SAM schema allowed only ARM_64, so an AWS::Serverless::MicrovmImage with Architecture: X86_64 failed to transform:

Resource with id [Img] is invalid. Property 'CpuConfigurations.0.Architecture' value is not a valid dict.

This PR:

  • Allows X86_64 in CpuConfiguration.Architecture in samtranslator/internal/schema_source/aws_serverless_microvmimage.py. The generator passes CpuConfigurations through unchanged, so no other code change is needed.
  • Updates the valid values in sam-docs.json.
  • Regenerates schema_source/sam.schema.json and samtranslator/schema/schema.json with make schema. Both diffs only add X86_64 and the docs line.
  • Adds the transform test microvm_image_x86_64 (input and aws, aws-cn and aws-us-gov outputs).

Description of how you validated changes

  • pytest -n auto tests: 4846 passed, coverage 95.30%.
  • The new outputs pass cfn-lint 1.55.0 after cfn-lint -u --regions us-east-1, as bin/run_cfn_lint.sh runs it.
  • mypy --strict on the changed module, and the JSON and YAML format checks on the new test files, pass.

Checklist

Examples?

Please reach out in the comments if you want to add an example. Examples will be
added to sam init through aws/aws-sam-cli-app-templates.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

The MicroVM service now builds X86_64 images: the AWS::Lambda::MicrovmImage
CpuConfiguration Architecture accepts ARM_64 and X86_64, and the managed
base image al2023-1 version 3 supports both. The SAM schema allowed only
ARM_64, so an X86_64 template failed to transform with "Property
'CpuConfigurations.0.Architecture' value is not a valid dict".

Allow X86_64, regenerate the schemas, and add a transform test.
@licjun
licjun marked this pull request as ready for review November 9, 2026 21:17
@licjun
licjun requested a review from a team as a code owner November 9, 2026 21:17
@licjun
licjun added this pull request to the merge queue Nov 10, 2026
Merged via the queue into aws:develop with commit 88724d3 Nov 10, 2026
9 checks passed
@licjun
licjun deleted the feat-microvm-image-x86-64 branch November 10, 2026 00:11
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