Skip to main content

microvm_image_builds

Creates, updates, deletes, gets or lists a microvm_image_builds resource.

Overview​

Namemicrovm_image_builds
TypeResource
Idaws.lambda_microvms.microvm_image_builds

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
architecturestringThe target CPU architecture for the build. Supported value: ARM_64. (ARM_64)
build_idstringA string which is not empty or blank (only whitespace). (pattern: <code>[^\s]+</code>)
build_statestringThe current state of the build. (PENDING, IN_PROGRESS, SUCCESSFUL, FAILED)
chipsetstringThe target chipset for the build. (GRAVITON)
chipset_generationstringA string which is not empty or blank (only whitespace). (pattern: <code>[^\s]+</code>)
created_atstring (date-time)The timestamp when the build was created.
image_arnstringA string which is not empty or blank (only whitespace). (pattern: <code>[^\s]+</code>)
image_versionstringA string which is not empty or blank (only whitespace). (pattern: <code>[^\s]+</code>)
snapshot_buildobjectThe snapshot build details, including memory and disk snapshot sizes.
state_reasonstringThe reason for the build state, if applicable.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_microvm_image_buildselectimage_identifier, image_version, build_id, regionRetrieves the details of a specific MicroVM image build, including its state, target architecture, and snapshot information.
list_microvm_image_buildsselectimage_identifier, image_version, regionmaxResults, nextToken, architecture, chipset, chipsetGenerationLists builds for a MicroVM image version with optional filtering by architecture and chipset. We recommend using pagination to ensure that the operation returns quickly and successfully.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
build_idstringThe unique identifier of the build to retrieve.
image_identifierstringThe unique identifier (ARN or ID) of the MicroVM image.
image_versionstringThe version of the MicroVM image to list builds for.
regionstringAWS region (default: us-east-1)
architecturestringFilters builds by target CPU architecture.
chipsetstringFilters builds by target chipset.
chipsetGenerationstringFilters builds by target chipset generation.
maxResultsintegerThe maximum number of results to return in a single call.
nextTokenstringThe pagination token from a previous call. Use this token to retrieve the next page of results.

SELECT examples​

Retrieves the details of a specific MicroVM image build, including its state, target architecture, and snapshot information.

SELECT
architecture,
build_id,
build_state,
chipset,
chipset_generation,
created_at,
image_arn,
image_version,
snapshot_build,
state_reason
FROM aws.lambda_microvms.microvm_image_builds
WHERE image_identifier = '{{ image_identifier }}' -- required
AND image_version = '{{ image_version }}' -- required
AND build_id = '{{ build_id }}' -- required
AND region = '{{ region }}' -- required
;