Skip to content

Commit 7674244

Browse files
committed
docs(ecs): clarify that fromEcrRepository tag parameter also accepts digest
The tag parameter of ContainerImage.fromEcrRepository accepts both tag and digest formats, but the documentation only mentioned tags. Closes #30463
1 parent f0b6da8 commit 7674244

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/aws-cdk-lib/aws-ecs/lib/container-image.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ export abstract class ContainerImage {
2020
/**
2121
* Reference an image in an ECR repository
2222
*
23-
* @param tag If you don't specify this parameter, `latest` is used as default.
23+
* @param tag Image tag or digest. Supports both tag (e.g., 'latest') and digest
24+
* (e.g., 'sha256:abc123') formats. If you don't specify this parameter, `latest` is used as default.
2425
*/
2526
public static fromEcrRepository(repository: ecr.IRepository, tag: string = 'latest') {
2627
return new EcrImage(repository, tag);

0 commit comments

Comments
 (0)