Amazon EC2 Image Builder · JSON Structure
Ec2 Image Builder Container Recipe Structure
A container recipe.
Type: object
Properties: 17
Amazon Web ServicesAutomationContainer ImagesEC2Image BuildingVirtual Machine Images
ContainerRecipe is a JSON Structure definition published by Amazon EC2 Image Builder, describing 17 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.
Properties
arn
containerType
name
description
platform
owner
version
components
instanceConfiguration
dockerfileTemplateData
kmsKeyId
encrypted
parentImage
dateCreated
tags
workingDirectory
targetRepository
Meta-schema: https://json-structure.org/meta/core/v0/#
JSON Structure
{
"$schema": "https://json-structure.org/meta/core/v0/#",
"$id": "https://raw.githubusercontent.com/api-evangelist/amazon-ec2-image-builder/refs/heads/main/json-structure/ec2-image-builder-container-recipe-structure.json",
"name": "ContainerRecipe",
"description": "A container recipe.",
"type": "object",
"properties": {
"arn": {
"allOf": [
{
"$ref": "#/components/schemas/ImageBuilderArn"
},
{
"description": "<p>The Amazon Resource Name (ARN) of the container recipe.</p> <note> <p>Semantic versioning is included in each object's Amazon Resource Name (ARN), at the level that applies to that object as follows:</p> <ol> <li> <p>Versionless ARNs and Name ARNs do not include specific values in any of the nodes. The nodes are either left off entirely, or they are specified as wildcards, for example: x.x.x.</p> </li> <li> <p>Version ARNs have only the first three nodes: <major>.<minor>.<patch></p> </li> <li> <p>Build version ARNs have all four nodes, and point to a specific build for a specific version of an object.</p> </li> </ol> </note>"
}
]
},
"containerType": {
"allOf": [
{
"$ref": "#/components/schemas/ContainerType"
},
{
"description": "Specifies the type of container, such as Docker."
}
]
},
"name": {
"allOf": [
{
"$ref": "#/components/schemas/ResourceName"
},
{
"description": "The name of the container recipe."
}
]
},
"description": {
"allOf": [
{
"$ref": "#/components/schemas/NonEmptyString"
},
{
"description": "The description of the container recipe."
}
]
},
"platform": {
"allOf": [
{
"$ref": "#/components/schemas/Platform"
},
{
"description": "The system platform for the container, such as Windows or Linux."
}
]
},
"owner": {
"allOf": [
{
"$ref": "#/components/schemas/NonEmptyString"
},
{
"description": "The owner of the container recipe."
}
]
},
"version": {
"allOf": [
{
"$ref": "#/components/schemas/VersionNumber"
},
{
"description": "<p>The semantic version of the container recipe.</p> <note> <p>The semantic version has four nodes: <major>.<minor>.<patch>/<build>. You can assign values for the first three, and can filter on all of them.</p> <p> <b>Assignment:</b> For the first three nodes you can assign any positive integer value, including zero, with an upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically assigns the build number to the fourth node.</p> <p> <b>Patterns:</b> You can use any numeric pattern that adheres to the assignment requirements for the nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or a date, such as 2021.01.01.</p> <p> <b>Filtering:</b> With semantic versioning, you have the flexibility to use wildcards (x) to specify the most recent versions or nodes when selecting the base image or components for your recipe. When you use a wildcard in any node, all nodes to the right of the first wildcard must also be wildcards.</p> </note>"
}
]
},
"components": {
"allOf": [
{
"$ref": "#/components/schemas/ComponentConfigurationList"
},
{
"description": "Build and test components that are included in the container recipe. Recipes require a minimum of one build component, and can have a maximum of 20 build and test components in any combination."
}
]
},
"instanceConfiguration": {
"allOf": [
{
"$ref": "#/components/schemas/InstanceConfiguration"
},
{
"description": "A group of options that can be used to configure an instance for building and testing container images."
}
]
},
"dockerfileTemplateData": {
"allOf": [
{
"$ref": "#/components/schemas/DockerFileTemplate"
},
{
"description": "Dockerfiles are text documents that are used to build Docker containers, and ensure that they contain all of the elements required by the application running inside. The template data consists of contextual variables where Image Builder places build information or scripts, based on your container image recipe."
}
]
},
"kmsKeyId": {
"allOf": [
{
"$ref": "#/components/schemas/NonEmptyString"
},
{
"description": "Identifies which KMS key is used to encrypt the container image for distribution to the target Region."
}
]
},
"encrypted": {
"allOf": [
{
"$ref": "#/components/schemas/NullableBoolean"
},
{
"description": "A flag that indicates if the target container is encrypted."
}
]
},
"parentImage": {
"allOf": [
{
"$ref": "#/components/schemas/NonEmptyString"
},
{
"description": "The base image for the container recipe."
}
]
},
"dateCreated": {
"allOf": [
{
"$ref": "#/components/schemas/DateTime"
},
{
"description": "The date when this container recipe was created."
}
]
},
"tags": {
"allOf": [
{
"$ref": "#/components/schemas/TagMap"
},
{
"description": "Tags that are attached to the container recipe."
}
]
},
"workingDirectory": {
"allOf": [
{
"$ref": "#/components/schemas/NonEmptyString"
},
{
"description": "The working directory for use during build and test workflows."
}
]
},
"targetRepository": {
"allOf": [
{
"$ref": "#/components/schemas/TargetContainerRepository"
},
{
"description": "The destination repository for the container image."
}
]
}
}
}