Skip to content

Kmeans regional images #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Nov 25, 2017
Merged

Kmeans regional images #37

merged 5 commits into from
Nov 25, 2017

Conversation

winstonaws
Copy link
Contributor

No description provided.

@winstonaws winstonaws requested a review from djarpin November 24, 2017 22:30
@@ -187,10 +187,13 @@
"job_name = 'kmeans-lowlevel-' + strftime(\"%Y-%m-%d-%H-%M-%S\", gmtime())\n",
"print(\"Training job\", job_name)\n",
"\n",
"region = !aws configure get region\n",
"image = '174872318107.dkr.ecr.{}.amazonaws.com/kmeans:1'.format(region[0])\n",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Account numbers that algorithms are published under change across regions (and across algorithm groups). I've been using a lookup like this:

containers = {'us-west-2': '174872318107.dkr.ecr.us-west-2.amazonaws.com/kmeans:latest',
              'us-east-1': '382416733822.dkr.ecr.us-east-1.amazonaws.com/kmeans:latest',
              'us-east-2': '404615174143.dkr.ecr.us-east-2.amazonaws.com/kmeans:latest',
              'eu-west-1': '438346466558.dkr.ecr.eu-west-1.amazonaws.com/kmeans:latest'}
image = containers[boto3.Session().region_name]

@djarpin djarpin merged commit 730cff6 into master Nov 25, 2017
@djarpin djarpin deleted the kmeans_regional_images branch August 17, 2018 19:56
@igabr igabr mentioned this pull request Oct 5, 2020
atqy referenced this pull request in atqy/amazon-sagemaker-examples Aug 16, 2022
* Update version

* Bump up version to 0.4.10, skipping 0.4.9 due to confusion of reverting release

* Get integration tests working again without patch hacks
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.

2 participants