RepositoryContainer: {
    repository: IRepository;
    type: "repository";
    version: string;
}

Configuration to determine what container to use for the task For example, to run the task in the latest node container:

const containerConfiguration = {
id: 'node:latest'
}

Alternatively you can specify a repository and version, for example for an ECR repository:

import { Repository } from "aws-cdk-lib/aws-ecr";
const repository = new Repository(scope, `${app}-repository`, {
repositoryName: app,
});
const containerConfiguration = {
repository: Repository.fromRepositoryArn("<repository arn>"),
version: '1'
}

Type declaration

  • repository: IRepository
  • type: "repository"
  • version: string