Skip to content

Commit ded3c8f

Browse files
mnuyenslaurenyu
authored andcommitted
change: update Sagemaker Neo regions (#1024)
1 parent 3739e5b commit ded3c8f

File tree

2 files changed

+33
-3
lines changed

2 files changed

+33
-3
lines changed

src/sagemaker/model.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,23 @@
4545
NEO_ALLOWED_FRAMEWORKS = set(["mxnet", "tensorflow", "pytorch", "onnx", "xgboost"])
4646

4747
NEO_IMAGE_ACCOUNT = {
48+
"us-west-1": "710691900526",
4849
"us-west-2": "301217895009",
4950
"us-east-1": "785573368785",
50-
"eu-west-1": "802834080501",
5151
"us-east-2": "007439368137",
52+
"eu-west-1": "802834080501",
53+
"eu-west-2": "205493899709",
54+
"eu-west-3": "254080097072",
55+
"eu-central-1": "746233611703",
56+
"eu-north-1": "601324751636",
5257
"ap-northeast-1": "941853720454",
58+
"ap-northeast-2": "151534178276",
59+
"ap-east-1": "110948597952",
60+
"ap-southeast-1": "324986816169",
61+
"ap-southeast-2": "355873309152",
62+
"ap-south-1": "763008648453",
63+
"sa-east-1": "756306329178",
64+
"ca-central-1": "464438896020",
5365
}
5466

5567

tests/unit/test_model.py

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,15 +523,33 @@ def test_check_neo_region(sagemaker_session, tmpdir):
523523
"cn-north-1",
524524
"cn-northwest-1",
525525
"eu-central-1",
526-
" eu-west-1",
526+
"eu-west-1",
527527
"eu-west-2",
528528
"eu-west-3",
529529
"eu-north-1",
530530
"sa-east-1",
531531
"us-gov-east-1",
532532
"us-gov-west-1",
533533
]
534-
neo_support_region = ["us-west-2", "eu-west-1", "us-east-1", "us-east-2", "ap-northeast-1"]
534+
neo_support_region = [
535+
"us-west-1",
536+
"us-west-2",
537+
"us-east-1",
538+
"us-east-2",
539+
"eu-west-1",
540+
"eu-west-2",
541+
"eu-west-3",
542+
"eu-central-1",
543+
"eu-north-1",
544+
"ap-northeast-1",
545+
"ap-northeast-2",
546+
"ap-east-1",
547+
"ap-south-1",
548+
"ap-southeast-1",
549+
"ap-southeast-2",
550+
"sa-east-1",
551+
"ca-central-1",
552+
]
535553
for region_name in ec2_region_list:
536554
if region_name in neo_support_region:
537555
assert model.check_neo_region(region_name) is True

0 commit comments

Comments
 (0)