File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
tests/integration-tests/tests/common Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -227,16 +227,22 @@ def get_installed_parallelcluster_base_version():
227
227
return pkg_resources .packaging .version .parse (get_installed_parallelcluster_version ()).base_version
228
228
229
229
230
+ CLASSIC_AWS_DOMAIN = "amazonaws.com"
231
+ CHINA_AWS_DOMAIN = "amazonaws.com.cn"
232
+ US_ISO_AWS_DOMAIN = "c2s.ic.gov"
233
+ US_ISOB_AWS_DOMAIN = "sc2s.sgov.gov"
234
+
235
+
230
236
def get_aws_domain (region : str ):
231
237
"""Get AWS domain for the given region."""
232
238
if region .startswith ("cn-" ):
233
- return "amazonaws.com.cn"
239
+ return CHINA_AWS_DOMAIN
234
240
elif region .startswith ("us-iso-" ):
235
- return "c2s.ic.gov"
241
+ return US_ISO_AWS_DOMAIN
236
242
elif region .startswith ("us-isob-" ):
237
- return "sc2s.sgov.gov"
243
+ return US_ISOB_AWS_DOMAIN
238
244
else :
239
- return "amazonaws.com"
245
+ return CLASSIC_AWS_DOMAIN
240
246
241
247
242
248
def get_sts_endpoint (region ):
You can’t perform that action at this time.
0 commit comments