Skip to main content

EcrImageSchema

EcrImageSchema is the schema of the EcrImage resource: an ECR repository, holding the published versions of one image. Terraform provisions it as aws_ecr_repository.

It is the repository alone. The images published into it are EcrImageTagSchema resources, one per tag, and its tags are immutable - publishing new content means publishing a new tag.

@group

Resources/Ecr

@overrideProperty

parents - This resource has no parents.

@overrideProperty

resourceId - The resource id is of format ecr-<region-id>-<image-id>

Hierarchy

  • BaseResourceSchema
    • EcrImageSchema

Index

Properties

inheritedlocalResourceId

localResourceId: string

The ID the resource was created with, unique within its scope.

inheritedparents

parents: IResourceReference[]

The resources this one is built on top of.

properties

properties: { awsAccountId: string; awsRegionId: string; imageId: string; imageTagsToKeep: number }

Input properties.

  • properties.awsAccountId - The AWS account ID.
  • properties.awsRegionId - The AWS region ID.
  • properties.imageId - This is the name of the ECR repository. The id usually follows the naming convention of family/name, e.g. quadnix/nginx.
  • properties.imageTagsToKeep - How many images the repository keeps, the newest by push time.

Type declaration

  • awsAccountId: string
  • awsRegionId: string
  • imageId: string
  • imageTagsToKeep: number

inheritedresourceId

resourceId: string

The ID of the resource, unique across the infrastructure: its localResourceId, followed by a hash of its scope when it has one.

response

response: { registryId?: string; repositoryArn?: string; repositoryName?: string; repositoryUri?: string } = { registryId: '000000000000', repositoryArn: 'arn:aws:ecr:us-east-1:000000000000:repository/mock-repository', repositoryName: 'mock-repository', repositoryUri: '000000000000.dkr.ecr.us-east-1.amazonaws.com/mock-repository', }

Saved response.

  • response.registryId - The AWS account ID associated with the registry that contains the repository.
  • response.repositoryArn - The ARN of the repository.
  • response.repositoryName - The name of the repository.
  • response.repositoryUri - The URI of the repository.

Type declaration

  • optionalregistryId?: string
  • optionalrepositoryArn?: string
  • optionalrepositoryName?: string
  • optionalrepositoryUri?: string

inheritedscope

scope: string[]

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

tags: {}

The tags applied to the resource.


Type declaration

  • [key string]: string