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 (BatchGetImage → PutImage with a new tag). Provide the implementation with
Effect.provide(AWS.ECR.PutImageHttp).
Pushing Images
Section titled “Pushing Images”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",});