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'} Copy
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'} Copy
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'}
Configuration to determine what container to use for the task For example, to run the task in the latest node container:
Alternatively you can specify a repository and version, for example for an ECR repository: