Repository navigation
feat: support X86_64 for AWS::Serverless::MicrovmImage - #4031
Merged
Merged
Conversation
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.
reedham-aws
approved these changes
Nov 9, 2026
vicheey
approved these changes
Nov 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue #, if available
Description of changes
The MicroVM service now builds X86_64 images. The
AWS::Lambda::MicrovmImageCloudFormation schema acceptsARM_64andX86_64forCpuConfigurations[].Architecture.The SAM schema allowed only
ARM_64, so anAWS::Serverless::MicrovmImagewithArchitecture: X86_64failed to transform:This PR:
X86_64inCpuConfiguration.Architectureinsamtranslator/internal/schema_source/aws_serverless_microvmimage.py. The generator passesCpuConfigurationsthrough unchanged, so no other code change is needed.sam-docs.json.schema_source/sam.schema.jsonandsamtranslator/schema/schema.jsonwithmake schema. Both diffs only addX86_64and the docs line.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%.cfn-lint1.55.0 aftercfn-lint -u --regions us-east-1, asbin/run_cfn_lint.shruns it.mypy --stricton the changed module, and the JSON and YAML format checks on the new test files, pass.Checklist
error_microvm_image_invalid_enums)Examples?
Please reach out in the comments if you want to add an example. Examples will be
added to
sam initthrough 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.