EcrImageTagSchema
Hierarchy
- BaseResourceSchema
- EcrImageTagSchema
Index
Properties
inheritedlocalResourceId
The ID the resource was created with, unique within its scope.
inheritedparents
The resources this one is built on top of.
properties
Input properties.
properties.architecture- The processor the image is built for. A runtime reads it to run the image on the same processor. Like the build context, changing it publishes nothing; publish a new tag instead.properties.awsAccountId- The AWS account ID.properties.awsRegionId- The AWS region ID.properties.buildArguments- Values passed to the build as--build-arg. Like the build context, changing them publishes nothing.properties.buildSecrets- Secrets passed to the build as--secret, each id mapped to the name of the environment variable holding it. Only the names are kept. Like the build context, changing them publishes nothing.properties.dockerfileDirectory- The build context, as a path relative to the octo project root. It is relative because an absolute path differs on every machine, and this path is part of what octo commits. It says how the image was built rather than what it is, so moving it publishes nothing; publish a new tag instead.properties.dockerfileName- The name of the Dockerfile withindockerfileDirectory. Like the directory, it is a build instruction rather than part of the image's identity.properties.imageId- The name of the ECR repository, e.g.quadnix/nginx.properties.imageTag- The tag to publish the image under. The repository's tags are immutable, so new content is published under a new tag rather than over an existing one.
Type declaration
architecture: arm64 | x86_64
awsAccountId: string
awsRegionId: string
buildArguments: Record<string, string>
buildSecrets: Record<string, string>
dockerfileDirectory: string
dockerfileName: string
imageId: string
imageTag: string
inheritedresourceId
The ID of the resource, unique across the infrastructure: its localResourceId, followed by a hash
of its scope when it has one.
response
Saved response.
response.imageDigest- The content digest AWS assigned the pushed image.response.imageTag- The tag the image was published under.response.imageUri- The full<uri>:<tag>reference, which is what a container definition runs.response.registryId- The AWS account ID of the registry holding the repository.response.repositoryName- The name of the repository the image was published into.
Type declaration
optionalimageDigest?: string
optionalimageTag?: string
optionalimageUri?: string
optionalregistryId?: string
optionalrepositoryName?: string
inheritedscope
The contexts of the models the resource is placed under, derived from where the node creating it sits in the model graph. Octo sets it; a resource created outside a model action has none.
inheritedtags
The tags applied to the resource.
Type declaration
[key string]: string
The
EcrImageTagSchemaclass is the schema for theEcrImageTagresource, which represents one container image published into an AWS Elastic Container Registry repository.Terraform provisions no part of it. There is no managed resource in the AWS provider that puts an image into a registry, so this is an external resource: octo builds the image with the local docker CLI and pushes it through the ECR API itself. A push writes the tag once, because DockerService builds an image as a single manifest.
Resources/EcrImageTag
parents - The EcrImageSchema repository the image is published into.
resourceId - The resource id is of format
ecr-image-tag-<region-id>-<image-id>-<image-tag>. The tag is part of the identity, so publishing another one is a new resource rather than a change to this one. Nothing else about a published image is a change: two resources sharing an id are the same image, and the tag it sits under cannot be written twice.