Skip to content

Commit fa61b11

Browse files
yangawsChoiByungWook
authored andcommitted
Update gov cloud account number (#71)
* Update gov cloud account number * update changelog
1 parent 327dd1a commit fa61b11

File tree

7 files changed

+46
-2
lines changed

7 files changed

+46
-2
lines changed

CHANGELOG.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
CHANGELOG
33
=========
44

5+
1.1.5dev
6+
========
7+
8+
* spark/pyspark: Enable PDT region support for spark SDK
9+
510
1.1.4
611
=====
712

sagemaker-spark-sdk/src/main/scala/com/amazonaws/services/sagemaker/sparksdk/algorithms/ImageURIProvider.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ private[algorithms] object SagerMakerRegionAccountMaps {
4040
Regions.AP_NORTHEAST_1.getName -> "351501993468",
4141
Regions.AP_NORTHEAST_2.getName -> "835164637446",
4242
Regions.EU_CENTRAL_1.getName -> "664544806723",
43-
Regions.AP_SOUTHEAST_2.getName -> "712309505854"
43+
Regions.AP_SOUTHEAST_2.getName -> "712309505854",
44+
Regions.GovCloud.getName -> "226302683700"
4445
)
4546

4647
// For LDA
@@ -64,7 +65,8 @@ private[algorithms] object SagerMakerRegionAccountMaps {
6465
Regions.AP_NORTHEAST_1.getName -> "501404015308",
6566
Regions.AP_NORTHEAST_2.getName -> "306986355934",
6667
Regions.EU_CENTRAL_1.getName -> "813361260812",
67-
Regions.AP_SOUTHEAST_2.getName -> "544295431143"
68+
Regions.AP_SOUTHEAST_2.getName -> "544295431143",
69+
Regions.GovCloud.getName -> "226302683700"
6870
)
6971
}
7072

sagemaker-spark-sdk/src/test/scala/com/amazonaws/services/sagemaker/sparksdk/algorithms/FactorizationMachinesSageMakerEstimatorTests.scala

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ class FactorizationMachinesSageMakerEstimatorTests extends FlatSpec with Mockito
9696
createFactorizationMachinesBinaryClassifier(region = Regions.AP_SOUTHEAST_2.getName)
9797
assert(estimatorAPSouthEast2.trainingImage ==
9898
"712309505854.dkr.ecr.ap-southeast-2.amazonaws.com/factorization-machines:1")
99+
100+
val estimatorGovCloud =
101+
createFactorizationMachinesBinaryClassifier(region = Regions.GovCloud.getName)
102+
assert(estimatorGovCloud.trainingImage ==
103+
"226302683700.dkr.ecr.us-gov-west-1.amazonaws.com/factorization-machines:1")
99104
}
100105

101106
it should "use the correct defaults for regressor" in {
@@ -142,6 +147,11 @@ class FactorizationMachinesSageMakerEstimatorTests extends FlatSpec with Mockito
142147
createFactorizationMachinesRegressor(region = Regions.AP_SOUTHEAST_2.getName)
143148
assert(estimatorAPSouthEast2.trainingImage ==
144149
"712309505854.dkr.ecr.ap-southeast-2.amazonaws.com/factorization-machines:1")
150+
151+
val estimatorGovCloud =
152+
createFactorizationMachinesRegressor(region = Regions.GovCloud.getName)
153+
assert(estimatorGovCloud.trainingImage ==
154+
"226302683700.dkr.ecr.us-gov-west-1.amazonaws.com/factorization-machines:1")
145155
}
146156

147157
it should "setFeatureDim" in {

sagemaker-spark-sdk/src/test/scala/com/amazonaws/services/sagemaker/sparksdk/algorithms/KMeansSageMakerEstimatorTests.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ class KMeansSageMakerEstimatorTests extends FlatSpec with Matchers with MockitoS
8484
val estimatorAPSouthEast2 = createKMeansEstimator(region = Regions.AP_SOUTHEAST_2.getName)
8585
assert(estimatorAPSouthEast2.trainingImage ==
8686
"712309505854.dkr.ecr.ap-southeast-2.amazonaws.com/kmeans:1")
87+
88+
val estimatorGovCloud = createKMeansEstimator(region = Regions.GovCloud.getName)
89+
assert(estimatorGovCloud.trainingImage ==
90+
"226302683700.dkr.ecr.us-gov-west-1.amazonaws.com/kmeans:1")
8791
}
8892

8993
it should "setK" in {

sagemaker-spark-sdk/src/test/scala/com/amazonaws/services/sagemaker/sparksdk/algorithms/LinearLearnerSageMakerEstimatorTests.scala

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ class LinearLearnerSageMakerEstimatorTests extends FlatSpec with MockitoSugar {
101101
createLinearLearnerBinaryClassifier(region = Regions.AP_SOUTHEAST_2.getName)
102102
assert(estimatorAPSouthEast2.trainingImage ==
103103
"712309505854.dkr.ecr.ap-southeast-2.amazonaws.com/linear-learner:1")
104+
105+
val estimatorGovCloud =
106+
createLinearLearnerBinaryClassifier(region = Regions.GovCloud.getName)
107+
assert(estimatorGovCloud.trainingImage ==
108+
"226302683700.dkr.ecr.us-gov-west-1.amazonaws.com/linear-learner:1")
104109
}
105110

106111
it should "use the correct defaults for multiclass classifier" in {
@@ -151,6 +156,11 @@ class LinearLearnerSageMakerEstimatorTests extends FlatSpec with MockitoSugar {
151156
createLinearLearnerMultiClassClassifier(region = Regions.AP_SOUTHEAST_2.getName)
152157
assert(estimatorAPSouthEast2.trainingImage ==
153158
"712309505854.dkr.ecr.ap-southeast-2.amazonaws.com/linear-learner:1")
159+
160+
val estimatorGovCloud =
161+
createLinearLearnerMultiClassClassifier(region = Regions.GovCloud.getName)
162+
assert(estimatorGovCloud.trainingImage ==
163+
"226302683700.dkr.ecr.us-gov-west-1.amazonaws.com/linear-learner:1")
154164
}
155165

156166
it should "use the correct defaults for regressor" in {
@@ -197,6 +207,11 @@ class LinearLearnerSageMakerEstimatorTests extends FlatSpec with MockitoSugar {
197207
createLinearLearnerRegressor(region = Regions.AP_SOUTHEAST_2.getName)
198208
assert(estimatorAPSouthEast2.trainingImage ==
199209
"712309505854.dkr.ecr.ap-southeast-2.amazonaws.com/linear-learner:1")
210+
211+
val estimatorGovCloud =
212+
createLinearLearnerRegressor(region = Regions.GovCloud.getName)
213+
assert(estimatorGovCloud.trainingImage ==
214+
"226302683700.dkr.ecr.us-gov-west-1.amazonaws.com/linear-learner:1")
200215
}
201216

202217
it should "setFeatureDim" in {

sagemaker-spark-sdk/src/test/scala/com/amazonaws/services/sagemaker/sparksdk/algorithms/PCASageMakerEstimatorTests.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ class PCASageMakerEstimatorTests extends FlatSpec with MockitoSugar {
6464
val estimatorAPSouthEast2 = createPCAEstimator(region = Regions.AP_SOUTHEAST_2.getName)
6565
assert(estimatorAPSouthEast2.trainingImage ==
6666
"712309505854.dkr.ecr.ap-southeast-2.amazonaws.com/pca:1")
67+
68+
val estimatorGovCloud = createPCAEstimator(region = Regions.GovCloud.getName)
69+
assert(estimatorGovCloud.trainingImage ==
70+
"226302683700.dkr.ecr.us-gov-west-1.amazonaws.com/pca:1")
6771
}
6872

6973
it should "use the correct defaults" in {

sagemaker-spark-sdk/src/test/scala/com/amazonaws/services/sagemaker/sparksdk/algorithms/XGBoostSageMakerEstimatorTests.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ class XGBoostSageMakerEstimatorTests extends FlatSpec with Matchers with Mockito
8383
val estimatorAPSouthEast2 = createXGBoostEstimator(region = Regions.AP_SOUTHEAST_2.getName)
8484
assert(estimatorAPSouthEast2.trainingImage ==
8585
"544295431143.dkr.ecr.ap-southeast-2.amazonaws.com/xgboost:1")
86+
87+
val estimatorGovCloud = createXGBoostEstimator(region = Regions.GovCloud.getName)
88+
assert(estimatorGovCloud.trainingImage ==
89+
"226302683700.dkr.ecr.us-gov-west-1.amazonaws.com/xgboost:1")
8690
}
8791

8892
it should "setBooster" in {

0 commit comments

Comments
 (0)