Skip to content

Commit 8178f13

Browse files
author
Edward Cho
committed
fix: Add ap-northeast-1 to Neo algorithms region map
1 parent 4b8623e commit 8178f13

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## v1.32.1dev
4+
### Bug fixes and other changes
5+
6+
* Add ap-northeast-1 to Neo algorithms region map
7+
38
## v1.31.1 (2019-07-01)
49

510
### Bug fixes and other changes

src/sagemaker/amazon/amazon_estimator.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
from sagemaker.amazon.hyperparameter import Hyperparameter as hp # noqa
2323
from sagemaker.amazon.common import write_numpy_to_dense_tensor
2424
from sagemaker.estimator import EstimatorBase, _TrainingJob
25+
from sagemaker.model import NEO_IMAGE_ACCOUNT
2526
from sagemaker.session import s3_input
2627
from sagemaker.utils import sagemaker_timestamp, get_ecr_image_uri_prefix
2728

@@ -395,12 +396,7 @@ def registry(region_name, algorithm=None):
395396
"us-iso-east-1": "490574956308",
396397
}[region_name]
397398
elif algorithm in ["image-classification-neo", "xgboost-neo"]:
398-
account_id = {
399-
"us-west-2": "301217895009",
400-
"us-east-1": "785573368785",
401-
"eu-west-1": "802834080501",
402-
"us-east-2": "007439368137",
403-
}[region_name]
399+
account_id = NEO_IMAGE_ACCOUNT[region_name]
404400
else:
405401
raise ValueError(
406402
"Algorithm class:{} does not have mapping to account_id with images".format(algorithm)

0 commit comments

Comments
 (0)