Skip to main content

image_recipes

Creates, updates, deletes, gets or lists an image_recipes resource.

Overview

Nameimage_recipes
TypeResource
Idaws.imagebuilder.image_recipes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
image_recipeobjectThe image recipe object.
latest_version_referencesobjectThe resource ARNs with different wildcard variations of semantic versioning.
request_idstringThe request ID that uniquely identifies this request.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_image_recipeselectimageRecipeArn, regionGets an image recipe.
list_image_recipesselectregionReturns a list of image recipes.
create_image_recipeinsertregion, name, semanticVersion, parentImage, clientTokenCreates a new image recipe. Image recipes define how images are configured, tested, and assessed.
delete_image_recipedeleteimageRecipeArn, regionDeletes an image recipe.

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
imageRecipeArnstringThe Amazon Resource Name (ARN) of the image recipe to delete.
regionstringAWS region (default: us-east-1)

SELECT examples

Gets an image recipe.

SELECT
image_recipe,
latest_version_references,
request_id
FROM aws.imagebuilder.image_recipes
WHERE imageRecipeArn = '{{ imageRecipeArn }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new image recipe. Image recipes define how images are configured, tested, and assessed.

INSERT INTO aws.imagebuilder.image_recipes (
name,
description,
semanticVersion,
components,
parentImage,
blockDeviceMappings,
tags,
workingDirectory,
additionalInstanceConfiguration,
amiTags,
amiWatermarks,
clientToken,
region
)
SELECT
'{{ name }}' /* required */,
'{{ description }}',
'{{ semanticVersion }}' /* required */,
'{{ components }}',
'{{ parentImage }}' /* required */,
'{{ blockDeviceMappings }}',
'{{ tags }}',
'{{ workingDirectory }}',
'{{ additionalInstanceConfiguration }}',
'{{ amiTags }}',
'{{ amiWatermarks }}',
'{{ clientToken }}' /* required */,
'{{ region }}'
RETURNING
client_token,
image_recipe_arn,
latest_version_references,
request_id
;

DELETE examples

Deletes an image recipe.

DELETE FROM aws.imagebuilder.image_recipes
WHERE imageRecipeArn = '{{ imageRecipeArn }}' --required
AND region = '{{ region }}' --required
;