t3-code-android-nightly/.repos/alchemy-effect/packages/alchemy/test/AWS/SageMaker/images.ts
Julius Marminge 108e01746c
Upgrade Effect and Alchemy betas (#4643)
Prepare Relay production infrastructure for the PlanetScale PS_20 HA topology, upgrade Effect and Alchemy to compatible betas, reconcile migration state, and preserve patched MCP session termination behavior.\n\nCo-authored-by: codex <codex@users.noreply.github.com>
2026-07-27 16:21:02 +02:00

17 lines
732 B
TypeScript

// AWS-owned SageMaker scikit-learn serving images (per-region registries).
// CreateModel performs a real pull-permission check, so test models must
// reference an image that actually exists and that the execution role (with
// AmazonEC2ContainerRegistryReadOnly) can pull.
export const sklearnImage = (region: string) => {
const registries: Record<string, string> = {
"us-east-1": "683313688378",
"us-east-2": "257758044811",
"us-west-1": "746614075791",
"us-west-2": "246618743249",
};
const registry = registries[region];
if (!registry) {
throw new Error(`no sklearn registry mapped for region ${region}`);
}
return `${registry}.dkr.ecr.${region}.amazonaws.com/sagemaker-scikit-learn:1.2-1`;
};