Skip to content

Commit 2969415

Browse files
eddiechopengk19
authored andcommitted
fix: Add ap-northeast-1 to Neo algorithms region map (aws#897)
1 parent 74f124d commit 2969415

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
### Bug fixes and other changes
3535

3636
* fix git test in test_estimator.py
37+
* Add ap-northeast-1 to Neo algorithms region map
3738

3839
## v1.31.1 (2019-07-01)
3940

src/sagemaker/amazon/amazon_estimator.py

+2-6
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)