Skip to main content

microvm_image_versions

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

Overview

Namemicrovm_image_versions
TypeResource
Idaws.lambda_microvms.microvm_image_versions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
additional_os_capabilitiesarrayList of capabilities granted to the application when booted
base_image_arnstringA string which is not empty or blank (only whitespace). (pattern: <code>[^\s]+</code>)
base_image_versionstringThe specific version of the base MicroVM image. (pattern: <code>[^\s]+</code>)
build_role_arnstringThe ARN of an IAM role that the service assumes to perform actions on behalf of the caller. (pattern: <code>arn:aws[a-z-]*:iam::[0-9]{12}:role/?[a-zA-Z_0-9+=,.@-_/]+</code>)
code_artifactobjectContains the location of the code artifact for a MicroVM image.
cpu_configurationsarrayList of CPU architectures
created_atstring (date-time)The timestamp when the version was created.
descriptionstringThe description of the version.
egress_network_connectorsarrayThe list of egress network connectors available to the MicroVM at runtime.
environment_variablesobjectEnvironment variables set in the MicroVM runtime environment.
hooksobjectLifecycle hook configuration for MicroVMs and MicroVM images.
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>)
loggingobjectConfiguration for MicroVM logging output. Specify exactly one: cloudWatch to enable CloudWatch logging, or disabled to turn off logging.
resourcesarrayList of resources
statestringThe current state of the version. (PENDING, IN_PROGRESS, SUCCESSFUL, FAILED, DELETING, DELETED, DELETE_FAILED)
state_reasonstringThe reason for the current state. For example, one or more builds failed.
statusstringThe availability status of the version: ACTIVE (can be used by RunMicrovm) or INACTIVE (blocked from launching new MicroVMs). (ACTIVE, INACTIVE)
tagsobjectKey-value pairs associated with the version.
updated_atstring (date-time)The timestamp when the version was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_microvm_image_versionselectimage_identifier, image_version, regionRetrieves the details of a specific version of a MicroVM image, including its configuration, state, and build information.
list_microvm_image_versionsselectimage_identifier, regionmaxResults, nextTokenLists versions of a MicroVM image. We recommend using pagination to ensure that the operation returns quickly and successfully.
update_microvm_image_versionupdateimage_identifier, image_version, region, statusUpdates the status of a specific MicroVM image version.
delete_microvm_image_versiondeleteimage_identifier, image_version, regionDeletes a specific version of a MicroVM image. This operation is idempotent; deleting a version that has already been deleted succeeds without error.

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
image_identifierstringThe unique identifier (ARN or ID) of the MicroVM image.
image_versionstringThe version of the MicroVM image to delete.
regionstringAWS region (default: us-east-1)
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 version of a MicroVM image, including its configuration, state, and build information.

SELECT
additional_os_capabilities,
base_image_arn,
base_image_version,
build_role_arn,
code_artifact,
cpu_configurations,
created_at,
description,
egress_network_connectors,
environment_variables,
hooks,
image_arn,
image_version,
logging,
resources,
state,
state_reason,
status,
tags,
updated_at
FROM aws.lambda_microvms.microvm_image_versions
WHERE image_identifier = '{{ image_identifier }}' -- required
AND image_version = '{{ image_version }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Updates the status of a specific MicroVM image version.

UPDATE aws.lambda_microvms.microvm_image_versions
SET
status = '{{ status }}'
WHERE
image_identifier = '{{ image_identifier }}' --required
AND image_version = '{{ image_version }}' --required
AND region = '{{ region }}' --required
AND status = '{{ status }}' --required
RETURNING
additional_os_capabilities,
base_image_arn,
base_image_version,
build_role_arn,
code_artifact,
cpu_configurations,
created_at,
description,
egress_network_connectors,
environment_variables,
hooks,
image_arn,
image_version,
logging,
resources,
state,
state_reason,
status,
tags,
updated_at;

DELETE examples

Deletes a specific version of a MicroVM image. This operation is idempotent; deleting a version that has already been deleted succeeds without error.

DELETE FROM aws.lambda_microvms.microvm_image_versions
WHERE image_identifier = '{{ image_identifier }}' --required
AND image_version = '{{ image_version }}' --required
AND region = '{{ region }}' --required
;