Skip to content

Commit fb2461e

Browse files
committed
fix: add missing account IDs for af-south-1 and eu-south-1
1 parent ce58ca9 commit fb2461e

File tree

8 files changed

+62
-5
lines changed

8 files changed

+62
-5
lines changed

src/sagemaker/amazon/amazon_estimator.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,8 @@ def registry(region_name, algorithm=None):
513513
"me-south-1": "249704162688",
514514
"cn-north-1": "390948362332",
515515
"cn-northwest-1": "387376663083",
516+
"af-south-1": "455444449433",
517+
"eu-south-1": "257386234256",
516518
}
517519
elif algorithm in ["lda"]:
518520
region_to_accounts = {
@@ -556,6 +558,8 @@ def registry(region_name, algorithm=None):
556558
"me-south-1": "249704162688",
557559
"cn-north-1": "390948362332",
558560
"cn-northwest-1": "387376663083",
561+
"af-south-1": "455444449433",
562+
"eu-south-1": "257386234256",
559563
}
560564
elif algorithm in [
561565
"xgboost",
@@ -588,6 +592,8 @@ def registry(region_name, algorithm=None):
588592
"me-south-1": "249704162688",
589593
"cn-north-1": "390948362332",
590594
"cn-northwest-1": "387376663083",
595+
"af-south-1": "455444449433",
596+
"eu-south-1": "257386234256",
591597
}
592598
elif algorithm in ["image-classification-neo", "xgboost-neo"]:
593599
region_to_accounts = NEO_IMAGE_ACCOUNT

src/sagemaker/debugger.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
"ca-central-1": {RULES_ECR_REPO_NAME: "519511493484"},
4949
"cn-north-1": {RULES_ECR_REPO_NAME: "618459771430"},
5050
"cn-northwest-1": {RULES_ECR_REPO_NAME: "658757709296"},
51+
"af-south-1": {RULES_ECR_REPO_NAME: "314341159256"},
52+
"eu-south-1": {RULES_ECR_REPO_NAME: "563282790590"},
5153
}
5254

5355

src/sagemaker/fw_registry.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,16 @@
130130
"scikit-learn": "451049120500",
131131
"xgboost": "451049120500",
132132
},
133+
"af-south-1": {
134+
"sparkml-serving": "510948584623",
135+
"scikit-learn": "510948584623",
136+
"xgboost": "455444449433",
137+
},
138+
"eu-south-1": {
139+
"sparkml-serving": "978288397137",
140+
"scikit-learn": "978288397137",
141+
"xgboost": "257386234256",
142+
},
133143
}
134144

135145

src/sagemaker/fw_utils.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,18 @@
9191
"cn-north-1": "727897471807",
9292
"cn-northwest-1": "727897471807",
9393
}
94-
OPT_IN_ACCOUNTS_BY_REGION = {"ap-east-1": "057415533634", "me-south-1": "724002660598"}
95-
ASIMOV_OPT_IN_ACCOUNTS_BY_REGION = {"ap-east-1": "871362719292", "me-south-1": "217643126080"}
94+
OPT_IN_ACCOUNTS_BY_REGION = {
95+
"ap-east-1": "057415533634",
96+
"me-south-1": "724002660598",
97+
"af-south-1": "313743910680",
98+
"eu-south-1": "048378556238",
99+
}
100+
ASIMOV_OPT_IN_ACCOUNTS_BY_REGION = {
101+
"ap-east-1": "871362719292",
102+
"me-south-1": "217643126080",
103+
"af-south-1": "626614931356",
104+
"eu-south-1": "692866216735",
105+
}
96106
DEFAULT_ACCOUNT = "520713654638"
97107
ASIMOV_PROD_ACCOUNT = "763104351884"
98108
ASIMOV_DEFAULT_ACCOUNT = ASIMOV_PROD_ACCOUNT

src/sagemaker/model.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@
5050
"cn-north-1": "472730292857",
5151
"cn-northwest-1": "474822919863",
5252
"us-gov-west-1": "263933020539",
53+
"af-south-1": "774647643957",
54+
"eu-south-1": "966458181534",
5355
}
5456

5557
INFERENTIA_INSTANCE_PREFIX = "ml_inf"

src/sagemaker/model_monitor/model_monitoring.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@
5858
"cn-north-1": "453000072557",
5959
"cn-northwest-1": "453252182341",
6060
"us-gov-west-1": "362178532790",
61+
"af-south-1": "875698925577",
62+
"eu-south-1": "933208885752",
6163
}
6264

6365
STATISTICS_JSON_DEFAULT_FILE_NAME = "statistics.json"

tests/integ/__init__.py

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,32 @@
7474
"us-west-2",
7575
]
7676

77-
NO_LDA_REGIONS = ["eu-west-3", "eu-north-1", "sa-east-1", "ap-east-1", "me-south-1"]
78-
NO_MARKET_PLACE_REGIONS = ["eu-west-3", "eu-north-1", "sa-east-1", "ap-east-1", "me-south-1"]
79-
NO_AUTO_ML_REGIONS = ["sa-east-1", "me-south-1", "ap-east-1", "eu-west-3"]
77+
NO_LDA_REGIONS = [
78+
"eu-west-3",
79+
"eu-north-1",
80+
"sa-east-1",
81+
"ap-east-1",
82+
"me-south-1",
83+
"af-south-1",
84+
"eu-south-1",
85+
]
86+
NO_MARKET_PLACE_REGIONS = [
87+
"eu-west-3",
88+
"eu-north-1",
89+
"sa-east-1",
90+
"ap-east-1",
91+
"me-south-1",
92+
"af-south-1",
93+
"eu-south-1",
94+
]
95+
NO_AUTO_ML_REGIONS = [
96+
"sa-east-1",
97+
"me-south-1",
98+
"ap-east-1",
99+
"eu-west-3",
100+
"af-south-1",
101+
"eu-south-1",
102+
]
80103
NO_MODEL_MONITORING_REGIONS = ["me-south-1"]
81104

82105
EFS_TEST_ENABLED_REGION = []

tests/unit/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,6 @@
3838
"cn-north-1",
3939
"cn-northwest-1",
4040
"us-gov-west-1",
41+
"af-south-1",
42+
"eu-south-1",
4143
]

0 commit comments

Comments
 (0)