Skip to content

Make SageMaker image URI region-agnostic#31

Open
baloglu321 wants to merge 2 commits intoed-donner:mainfrom
baloglu321:fix-sagemaker-region-issue
Open

Make SageMaker image URI region-agnostic#31
baloglu321 wants to merge 2 commits intoed-donner:mainfrom
baloglu321:fix-sagemaker-region-issue

Conversation

@baloglu321
Copy link
Copy Markdown

@baloglu321 baloglu321 commented Jan 29, 2026

This PR addresses the cross-region deployment issue where SageMaker model creation fails if the provider region is not us-east-1.

Changes:

Modified main.tf in the aws_sagemaker_model resource.

Replaced the static region part of the ECR URI with ${var.aws_region}.

Why this is better: Users can now deploy this project in any AWS region (e.g., eu-central-1, us-west-2) without having to manually find and update the Deep Learning Container URI for their specific region. It makes the infrastructure-as-code more robust and portable.

Verified the fix by deploying in eu-central-1 and successfully invoking the endpoint to receive embeddings.

Fixes #30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix: SageMaker ValidationException due to static region in ECR Image URI

1 participant