mirror of
https://github.com/floci-io/floci.git
synced 2026-12-04 18:48:00 -05:00
EMR Serverless resolves a custom image's digest either for each workload or once, at the application's start: "Custom images are resolved to a digest at application start; that digest is used for all jobs until the application restarts". The user guide's table makes that the default for EMR 7.13 and earlier (applicationLevelDigestResolution = true) and resolution per workload the default from 7.14. Floci resolved every custom image for each run, whatever the release or the setting. Where an image configuration's applicationLevelDigestResolution is true, or left unset on 7.13 or earlier, the application now reads the digest of its image in Floci's ECR as it starts, gives it to the image configuration as its resolvedImageDigest, and each run pulls the image by that digest until the application starts again, an update meanwhile notwithstanding; a job run's image configurations carry it. An image outside ECR, or one Floci's ECR does not hold, has no digest to read and is resolved for each run, as before, as is one in another account's repository, which Floci does not check the application may pull; any other answer from Floci's ECR fails the start, leaving the application as it was. An update that turns a running application's image to resolution per workload ends its pin, and a stopped application reports no digest. EcrRegistryManager gains ecrImage, the repository and the tag or digest an image URI names.