Skip to content

PutImage

Source: src/AWS/ECR/PutImage.ts

Runtime binding for ecr:PutImage.

Writes an image manifest to the bound repository — the final step of a push, and the write half of re-tagging (BatchGetImagePutImage with a new tag). Provide the implementation with Effect.provide(AWS.ECR.PutImageHttp).

const batchGetImage = yield* AWS.ECR.BatchGetImage(repository);
const putImage = yield* AWS.ECR.PutImage(repository);
const res = yield* batchGetImage({ imageIds: [{ imageTag: "latest" }] });
yield* putImage({
imageManifest: res.images![0]!.imageManifest!,
imageTag: "stable",
});