fix(lambda): support path-style ECR URIs for image functions (#1135)

This commit is contained in:
shrimptails-f authored and GitHub committed 2026-06-03 21:54:19 -05:00
1 parent a435147bea
commit 2a14f35c2d
2 files changed
+42 -3

No files matched your search

@@ -108,8 +108,7 @@ public class ContainerLauncher {
String region = m.group(2);
String repoAndTag = m.group(3);
ecrRegistryManager.ensureStarted();
int port = ecrRegistryManager.effectivePort();
String rewritten = account + ".dkr.ecr." + region + ".localhost:" + port + "/" + repoAndTag;
String rewritten = ecrRegistryManager.getRepositoryUri(account, region, repoAndTag);
LOG.infov("Rewriting ECR image URI {0} -> {1}", image, rewritten);
return rewritten;
}